fix: 🐛 stop removing uki uefi boot entries if deactivated

main
Adrian Wannenmacher 1 year ago
parent 8a27b4e196
commit c4dc5fdc0a
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
  1. 4
      src/snap-pac-uki.fish

@ -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

Loading…
Cancel
Save