summaryrefslogtreecommitdiff
path: root/eclass/kernel-install.eclass
diff options
context:
space:
mode:
authorNowa Ammerlaan <nowa@gentoo.org>2025-07-20 20:08:26 +0200
committerNowa Ammerlaan <nowa@gentoo.org>2025-07-20 20:10:40 +0200
commitc1992bfafece7b495785d4838a2d5ccb19a80b71 (patch)
treeb61e98ae0b00ab40019492fe4792b5532abf03ec /eclass/kernel-install.eclass
parent1b91c38569f00ef331e05e4925d42e4b2fd2fb4e (diff)
downloadgentoo-c1992bfafece7b495785d4838a2d5ccb19a80b71.tar.gz
gentoo-c1992bfafece7b495785d4838a2d5ccb19a80b71.tar.bz2
gentoo-c1992bfafece7b495785d4838a2d5ccb19a80b71.zip
kernel-install.eclass: support test of bin kernel with signed modules
The gentoo-kernel-bin does not have IUSE=modules-sign, but it does have signed modules if it was built with KERNEL_IUSE_MODULES_SIGN. Enforce signature verification in the test phase for this case. Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Diffstat (limited to 'eclass/kernel-install.eclass')
-rw-r--r--eclass/kernel-install.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index 67143278f368..e753592c46fc 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -478,7 +478,11 @@ kernel-install_test() {
esac
if [[ ${KERNEL_IUSE_MODULES_SIGN} ]]; then
- use modules-sign && qemu_extra_append+=" module.sig_enforce=1"
+ # If KERNEL_IUSE_MODULES_SIGN, but no IUSE=modules-sign,
+ # then this is gentoo-kernel-bin test phase with signed mods.
+ if ! in_iuse modules-sign || use modules-sign; then
+ qemu_extra_append+=" module.sig_enforce=1"
+ fi
fi
cat > run.sh <<-EOF || die