mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
kernel-build.eclass: respect SECUREBOOT_SIGN_TOOL when signing UKI
secureboot.eclass now has an optional SECUREBOOT_SIGN_TOOL parameter. Pass this on to ukify to ensure the selected tool is used to sign the generic UKI as well. Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1129 Merges: https://codeberg.org/gentoo/gentoo/pulls/1129
This commit is contained in:
@@ -686,9 +686,14 @@ kernel-build_src_install() {
|
||||
--signing-engine="pkcs11"
|
||||
)
|
||||
fi
|
||||
# systemd-sbsign does not support --sign-kernel.
|
||||
# Disable unconditionally since we know the kernel
|
||||
# image is already signed always.
|
||||
ukify_args+=(
|
||||
--secureboot-private-key="${SECUREBOOT_SIGN_KEY}"
|
||||
--secureboot-certificate="${SECUREBOOT_SIGN_CERT}"
|
||||
--signtool="${SECUREBOOT_SIGN_TOOL}"
|
||||
--no-sign-kernel
|
||||
)
|
||||
fi
|
||||
if [[ -n ${MEASUREDBOOT_SIGN_KEY} ]]; then
|
||||
|
||||
Reference in New Issue
Block a user