From 9f5d55dab8e4fb196c1910183dd385307e5852cf Mon Sep 17 00:00:00 2001 From: lotherk Date: Tue, 17 Nov 2026 20:49:17 +0000 Subject: [PATCH] sign-release: the release key of the build host is the default Without SIGNIFY_SECKEY 'auto' printed 'not signed' and left the previous .sig next to the new SHA512: a stale signature, which tools/upgrade-verify.sh and the source DVD check refuse. Measured twice on 2026-11-17 (release b and the source set c). An explicit SIGNIFY_SECKEY still wins. --- tools/sign-release.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/sign-release.sh b/tools/sign-release.sh index 62abd460c6..b2cc432027 100755 --- a/tools/sign-release.sh +++ b/tools/sign-release.sh @@ -35,6 +35,15 @@ die() SIGNIFY=$(command -v signify 2>/dev/null || command -v signify-openbsd 2>/dev/null) \ || die "no signify (security/signify)" +# The release key of the build host, unless the caller names another: without +# it `auto' left the previous .sig next to a new SHA512 (a stale signature +# that the upgrade check refuses; measured 2026-11-17). +if [ -z "${SIGNIFY_SECKEY:-}" ] && + [ -r "${HOME:-/nonexistent}/.config/makronix/signify/makronix-0.99.sec" ]; then + SIGNIFY_SECKEY=$HOME/.config/makronix/signify/makronix-0.99.sec + export SIGNIFY_SECKEY +fi + [ $# -ge 2 ] || die "usage: $0 sign|auto|verify|sign-key ARG..." cmd=$1 shift