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.
This commit is contained in:
lotherk committed 2026-11-17 20:49:17 +00:00
1 parent d4acc9c52d
commit 9f5d55dab8
1 file changed
+9
+9
View File
@@ -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