Skip to content

Commit 897e5ef

Browse files
joamonwxjohannbg
joamonwx
authored andcommitted
feat(dracut.sh): pass engine flag to sbsign allowing use with hardware devices
1 parent c8f819e commit 897e5ef

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dracut.sh

+1
Original file line numberDiff line numberDiff line change
@@ -2631,6 +2631,7 @@ if [[ $uefi == yes ]]; then
26312631
"$uefi_stub" "${uefi_outdir}/linux.efi"; then
26322632
if [[ -n ${uefi_secureboot_key} && -n ${uefi_secureboot_cert} ]]; then
26332633
if sbsign \
2634+
${uefi_secureboot_engine:+--engine "$uefi_secureboot_engine"} \
26342635
--key "${uefi_secureboot_key}" \
26352636
--cert "${uefi_secureboot_cert}" \
26362637
--output "$outfile" "${uefi_outdir}/linux.efi"; then

man/dracut.conf.5.asc

+3
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ Logging levels:
294294
Requires both certificate and key need to be specified and _sbsign_ to be
295295
installed.
296296

297+
*uefi_secureboot_engine=*"_parameter_"::
298+
Specifies an engine to use when signing the created UEFI executable. E.g. "pkcs11"
299+
297300
*kernel_image=*"_<file>_"::
298301
Specifies the kernel image, which to include in the UEFI executable. The
299302
default is _/lib/modules/<KERNEL-VERSION>/vmlinuz_ or

0 commit comments

Comments
 (0)