Add UKI signing to build script

This commit is contained in:
Alexandre CATTEAU 2023-06-30 13:20:16 +02:00
parent eace144e90
commit 7b6d5db1b2

View File

@ -17,6 +17,8 @@ $sudo objcopy \
--add-section .initrd="$path_to_vmlinuz_link/initrd.img" --change-section-vma .initrd=0x3000000 \ --add-section .initrd="$path_to_vmlinuz_link/initrd.img" --change-section-vma .initrd=0x3000000 \
/usr/lib/systemd/boot/efi/linuxx64.efi.stub $path_to_uki /usr/lib/systemd/boot/efi/linuxx64.efi.stub $path_to_uki
# TODO Sign UKI # Sign UKI
$sudo sbsign --key /etc/secureboot/keys/db/db.key --cert /etc/secureboot/keys/db/db.crt --output $path_to_uki \
$path_to_uki
exit 0 exit 0