mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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>
This commit is contained in:
@@ -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" ||
|
||||
|
||||
Reference in New Issue
Block a user