From 5672ecb34f1db5cf28f7d2c808e97df87217df5a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 18 Nov 2022 11:42:07 +0100 Subject: [PATCH] Add entries for `KeyTool` and `UEFI Shell` --- scripts/PopOS/secure-boot/install.sh.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/PopOS/secure-boot/install.sh.sh b/scripts/PopOS/secure-boot/install.sh.sh index 67d2cf47..193366e5 100755 --- a/scripts/PopOS/secure-boot/install.sh.sh +++ b/scripts/PopOS/secure-boot/install.sh.sh @@ -14,7 +14,7 @@ else cd "$contextRoot" # Install Prerequisites - apt install -y wget rpm2cpio + apt install -y wget rpm2cpio efitools # Download and Extract Package wget https://kojipkgs.fedoraproject.org//vol/fedora_koji_archive02/packages/shim-signed/15/2/x86_64/shim-x64-15-2.x86_64.rpm -O "$packageName" @@ -37,6 +37,8 @@ else mv $defaultBootDir/BOOTx64.efi $defaultBootDir/grubx64.efi cp "$src/shimx64.efi" $defaultBootDir/BOOTx64.efi cp "$src/mmx64.efi" $defaultBootDir + cp /usr/lib/efitools/x86_64-linux-gnu/KeyTool.efi /boot/efi/EFI/systemd/ + wget https://github.com/tianocore/edk2-archive/raw/master/ShellBinPkg/UefiShell/X64/Shell.efi -O "$systemdFullName/Shell.efi" # Add boot entries efibootmgr --unicode --disk /dev/nvme0n1 --part 0 --create --label "Shim" --loader /EFI/BOOT/BOOTx64.efi @@ -51,6 +53,16 @@ else echo "efi /EFI/BOOT/mmx64.efi" } > /boot/efi/loader/entries/MokManager.conf + { + echo "title KeyTool" + echo "efi /EFI/systemd/KeyTool.efi" + } > /boot/efi/loader/entries/KeyTool.conf + + { + echo "title UEFI Shell" + echo "efi /EFI/systemd/Shell.efi" + } > /boot/efi/loader/entries/Shell.conf + # Install surface MOK apt install -y linux-surface-secureboot-mok