summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorNowa Ammerlaan <nowa@gentoo.org>2025-09-26 12:09:20 +0200
committerNowa Ammerlaan <nowa@gentoo.org>2025-09-26 12:09:20 +0200
commit39540973a8b3e68b86b5da3be62a65b1cae585df (patch)
tree3fd8008953c4d69821e829a9aadae675a5c161b2 /eclass
parent10e0bb1d133e624422e103fa65dc9b3911687d53 (diff)
downloadgentoo-39540973a8b3e68b86b5da3be62a65b1cae585df.tar.gz
gentoo-39540973a8b3e68b86b5da3be62a65b1cae585df.tar.bz2
gentoo-39540973a8b3e68b86b5da3be62a65b1cae585df.zip
kernel-install.eclass: only use cert if non-empty
Apparently this file sometimes exists, but is empty, in which case we should not try to use it. Closes: https://bugs.gentoo.org/963425 Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-install.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index 7fd714111daf..47afe6e75010 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -734,7 +734,7 @@ kernel-install_install_all() {
local module_ver
module_ver=$(<"${relfile}") || die
- if [[ ! -r ${SECUREBOOT_SIGN_CERT} && -r ${kernel_cert} ]]; then
+ if [[ ! -r ${SECUREBOOT_SIGN_CERT} && -s ${kernel_cert} ]]; then
openssl x509 \
-inform DER -in "${kernel_cert}" \
-outform PEM -out "${T}/cert.pem" ||