Skip to content

Commit

Permalink
feat(dracut.sh): pass engine flag to sbsign allowing use with hardwar…
Browse files Browse the repository at this point in the history
…e devices
  • Loading branch information
joamonwx authored and johannbg committed Aug 12, 2022
1 parent c8f819e commit 897e5ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2631,6 +2631,7 @@ if [[ $uefi == yes ]]; then
"$uefi_stub" "${uefi_outdir}/linux.efi"; then
if [[ -n ${uefi_secureboot_key} && -n ${uefi_secureboot_cert} ]]; then
if sbsign \
${uefi_secureboot_engine:+--engine "$uefi_secureboot_engine"} \
--key "${uefi_secureboot_key}" \
--cert "${uefi_secureboot_cert}" \
--output "$outfile" "${uefi_outdir}/linux.efi"; then
Expand Down
3 changes: 3 additions & 0 deletions man/dracut.conf.5.asc
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ Logging levels:
Requires both certificate and key need to be specified and _sbsign_ to be
installed.

*uefi_secureboot_engine=*"_parameter_"::
Specifies an engine to use when signing the created UEFI executable. E.g. "pkcs11"

*kernel_image=*"_<file>_"::
Specifies the kernel image, which to include in the UEFI executable. The
default is _/lib/modules/<KERNEL-VERSION>/vmlinuz_ or
Expand Down

0 comments on commit 897e5ef

Please sign in to comment.