Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pull/188'
Browse files Browse the repository at this point in the history
* origin/pull/188:
  91-sbctl.install: don't sign without signing keys
  • Loading branch information
Foxboron committed Feb 22, 2024
2 parents ee7cf4a + 655d9c8 commit 1c0882b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contrib/kernel-install/91-sbctl.install
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1c0882b

Please sign in to comment.