Fix non-functioning secure boot install script
This commit is contained in:
parent
dd03c14bbb
commit
a20e7059c5
1 changed files with 6 additions and 2 deletions
|
@ -1,10 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
EFI_BOOT_DIR="${EFI_BOOT_DIR:-"/boot"}";
|
EFI_BOOT_DIR="${EFI_BOOT_DIR:-"/boot"}";
|
||||||
BOOTLOADER_ID=${BOOTLOADER_ID:-"Arch"};
|
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;
|
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 \
|
sudo sed -i \
|
||||||
-e "/esp=/{" \
|
-e "/esp=/{" \
|
||||||
|
|
Loading…
Reference in a new issue