Add support for EFI default image

This commit is contained in:
Alexandre CATTEAU 2023-07-22 12:37:17 +02:00
parent 9502317c19
commit 577e1e91e3
2 changed files with 6 additions and 0 deletions

View File

@ -21,4 +21,9 @@ $sudo objcopy \
# Sign UKI
$sudo sbsign --key /etc/secureboot/full/db.key --cert /etc/secureboot/full/db.crt --output $path_to_uki $path_to_uki
# if needed, copy UKI to EFI default boot path
if [[ -v $set_efi_default_image ]] && [[ $set_efi_default_image = "yes" ]]; then
$sudo cp $path_to_uki /efi/EFI/BOOT/BOOTX64.EFI
fi
exit 0

View File

@ -4,3 +4,4 @@
path_to_vmlinuz_link=/boot # /boot in Ubuntu 22.04, / in Debian 11
path_to_uki=/efi/EFI/debian/debian-linux.efi
set_efi_default_image="no" # change to "yes" if you need to boot from EFI\BOOT\BOOTX64.EFI