diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-10 23:34:33 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-10 23:34:33 +0000 |
commit | 0771aa27d30f102abe2c5733a138ffe570da4d15 (patch) | |
tree | 1ce3f24ab882caa90bf65381e4f0794872fc7d93 /app-crypt/sbctl/files | |
parent | 0bb42730e8fc9c8e571f12e3189c6c6f8d532c24 (diff) |
gentoo auto-resync : 10:02:2024 - 23:34:33
Diffstat (limited to 'app-crypt/sbctl/files')
-rw-r--r-- | app-crypt/sbctl/files/sbctl-0.13-no-installkernel-error.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-crypt/sbctl/files/sbctl-0.13-no-installkernel-error.patch b/app-crypt/sbctl/files/sbctl-0.13-no-installkernel-error.patch new file mode 100644 index 000000000000..18e28eb39b1d --- /dev/null +++ b/app-crypt/sbctl/files/sbctl-0.13-no-installkernel-error.patch @@ -0,0 +1,27 @@ +From: https://github.com/Foxboron/sbctl/pull/188 +From: John Helmert III <ajak@gentoo.org> +Date: Sat, 10 Feb 2024 11:46:01 -0800 +Subject: [PATCH] 91-sbctl.install: don't sign without signing keys + +It's expected that signing doesn't work without having previously +generated keys, so don't try to sign when keys don't exist. + +Closes: https://github.com/Foxboron/sbctl/issues/187 +Signed-off-by: John Helmert III <ajak@gentoo.org> +--- a/contrib/kernel-install/91-sbctl.install ++++ b/contrib/kernel-install/91-sbctl.install +@@ -28,6 +28,14 @@ fi + case "$COMMAND" in + add) + printf 'sbctl: Signing kernel %s\n' "$IMAGE_FILE" ++ ++ # exit without error if keys don't exist ++ # https://github.com/Foxboron/sbctl/issues/187 ++ if ! test -d /usr/share/secureboot/keys; then ++ echo "Secureboot key directory doesn't exist, not signing!" ++ exit 0 ++ fi ++ + sbctl sign -s "$IMAGE_FILE" 1>/dev/null + ;; + remove) |