fix: 🐛 stop removing uki uefi boot entries if deactivated

This commit is contained in:
Adrian Wannenmacher 2021-06-18 21:17:02 +02:00
parent 8a27b4e196
commit c4dc5fdc0a
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
1 changed files with 3 additions and 1 deletions

View File

@ -163,7 +163,9 @@ function main
echo " -> cleaning uki and boot entry for removed snapshot $uki"
rm "$CFG_UKI_DIR/arch-linux-$uki.efi"
efibootmgr -q -b (efibootmgr -v | rg "arch-linux-$uki.efi" | sed "s/\*//;s/Boot0*\(.*\) Arch .*/\1/") -B
if test "$CFG_EFI" = "yes"
efibootmgr -q -b (efibootmgr -v | rg "arch-linux-$uki.efi" | sed "s/\*//;s/Boot0*\(.*\) Arch .*/\1/") -B
end
end
end