sys-kernel/gentoo-kernel-bin: fix ordering in 6.12.{47,48}

Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
Nowa Ammerlaan 2025-09-24 15:15:57 +02:00
parent c8a9bb6828
commit c805eeb53d
No known key found for this signature in database
GPG Key ID: A2E2304370447E8E
2 changed files with 6 additions and 4 deletions

View File

@ -155,6 +155,9 @@ src_configure() {
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
fi
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
local uki="${image%/*}/uki.efi"
# Override user variable with the cert used during build
openssl x509 \
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
@ -162,8 +165,6 @@ src_configure() {
die "Failed to convert pcrpkey to PEM format"
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
local uki="${image%/*}/uki.efi"
if [[ -s ${uki} ]]; then
# We need to extract the plain image for the test phase
# and USE=-generic-uki.

View File

@ -155,6 +155,9 @@ src_configure() {
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
fi
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
local uki="${image%/*}/uki.efi"
# Override user variable with the cert used during build
openssl x509 \
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
@ -162,8 +165,6 @@ src_configure() {
die "Failed to convert pcrpkey to PEM format"
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
local uki="${image%/*}/uki.efi"
if [[ -s ${uki} ]]; then
# We need to extract the plain image for the test phase
# and USE=-generic-uki.