kernel-install: remove EFI variant of BLS dirs too
Remove also EFI version of BootLoader Specification dirs. This will: - really force to re-generate initramfs during installation, after all relevant configs are updated; previously, dracut (called by anaconda through kernel-install) refuse to update already existing /boot/efi/.../initrd file. - save some precious space in /boot/efi Fixes QubesOS/qubes-issues#3234
This commit is contained in:
parent
861ddc9ce0
commit
53730c4ba2
@ -13,3 +13,9 @@
|
|||||||
if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then
|
if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then
|
||||||
rm -rf /boot/${MACHINE_ID}
|
rm -rf /boot/${MACHINE_ID}
|
||||||
fi
|
fi
|
||||||
|
if [[ $MACHINE_ID ]] && ( [[ -d /boot/efi/${MACHINE_ID} ]] || [[ -L /boot/efi/${MACHINE_ID} ]] ); then
|
||||||
|
rm -rf /boot/efi/${MACHINE_ID}
|
||||||
|
rm -f /boot/efi/loader/entries/${MACHINE_ID}-*.conf
|
||||||
|
# remove only when empty
|
||||||
|
rmdir /boot/efi/loader/entries /boot/efi/loader || :
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user