summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-08-26 21:32:07 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-08-27 21:36:07 +0200
commit64eda769f895dc374fdc5e51d0c7cc4d3ffbe1dd (patch)
tree638dcb74a8d39dbc2f7a4d6d2fbc85d824378c0c /eclass/dist-kernel-utils.eclass
parentkernel-build.eclass: sign the kernel image earlier in src_install (diff)
downloadgentoo-64eda769f895dc374fdc5e51d0c7cc4d3ffbe1dd.tar.gz
gentoo-64eda769f895dc374fdc5e51d0c7cc4d3ffbe1dd.tar.bz2
gentoo-64eda769f895dc374fdc5e51d0c7cc4d3ffbe1dd.zip
dist-kernel-utils.eclass: only sign image if it is a UKI
If we are not using UKIs we don't have to do anything since the kernel image was already signed in kernel-build.eclass. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/32464 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'eclass/dist-kernel-utils.eclass')
-rw-r--r--eclass/dist-kernel-utils.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/dist-kernel-utils.eclass b/eclass/dist-kernel-utils.eclass
index 6903183b6efb..b2e9df6746e3 100644
--- a/eclass/dist-kernel-utils.eclass
+++ b/eclass/dist-kernel-utils.eclass
@@ -131,11 +131,11 @@ dist-kernel_install_kernel() {
done
shopt -u nullglob
export KERNEL_INSTALL_PLUGINS="${KERNEL_INSTALL_PLUGINS} ${plugins[@]}"
- fi
- if [[ ${KERNEL_IUSE_SECUREBOOT} ]]; then
- # Kernel-install requires uki's are named uki.efi, sign in-place
- secureboot_sign_efi_file "${image}" "${image}"
+ if [[ ${KERNEL_IUSE_SECUREBOOT} ]]; then
+ # Ensure the uki is signed if dracut hasn't already done so.
+ secureboot_sign_efi_file "${image}"
+ fi
fi
ebegin "Installing the kernel via installkernel"