From a20e7059c5f5cee3d1a049802349b87053a4e7e2 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 19 Jun 2024 13:39:14 +0200 Subject: [PATCH] Fix non-functioning secure boot install script --- scripts/Arch/Config/SecureBoot/install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/Arch/Config/SecureBoot/install.sh b/scripts/Arch/Config/SecureBoot/install.sh index 73ee3246..16403125 100755 --- a/scripts/Arch/Config/SecureBoot/install.sh +++ b/scripts/Arch/Config/SecureBoot/install.sh @@ -1,10 +1,14 @@ #!/bin/bash EFI_BOOT_DIR="${EFI_BOOT_DIR:-"/boot"}"; BOOTLOADER_ID=${BOOTLOADER_ID:-"Arch"}; -bootNum="$(efibootmgr | sed "/$BOOTLOADER_ID/{ s/^.*Boot\([[:digit:]]\+\)\*.*$/\1/; p; }; d")"; +bootNums="$(efibootmgr | sed "/$BOOTLOADER_ID/{ s/^.*Boot\([[:digit:]]\+\)\*.*$/\1/; p; }; d")"; yay --noconfirm -Syu secureboot-grub; -sudo efibootmgr --delete-bootnum --bootnum "$bootNum"; + +for bootNum in $bootNums; +do + sudo efibootmgr --delete-bootnum --bootnum "$bootNum" +done; sudo sed -i \ -e "/esp=/{" \