fix: 🐛 stop removing uki uefi boot entries if deactivated
This commit is contained in:
parent
8a27b4e196
commit
c4dc5fdc0a
@ -163,9 +163,11 @@ function main
|
|||||||
echo " -> cleaning uki and boot entry for removed snapshot $uki"
|
echo " -> cleaning uki and boot entry for removed snapshot $uki"
|
||||||
rm "$CFG_UKI_DIR/arch-linux-$uki.efi"
|
rm "$CFG_UKI_DIR/arch-linux-$uki.efi"
|
||||||
|
|
||||||
|
if test "$CFG_EFI" = "yes"
|
||||||
efibootmgr -q -b (efibootmgr -v | rg "arch-linux-$uki.efi" | sed "s/\*//;s/Boot0*\(.*\) Arch .*/\1/") -B
|
efibootmgr -q -b (efibootmgr -v | rg "arch-linux-$uki.efi" | sed "s/\*//;s/Boot0*\(.*\) Arch .*/\1/") -B
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
case "*"
|
case "*"
|
||||||
error "unknown command"
|
error "unknown command"
|
||||||
|
Loading…
Reference in New Issue
Block a user