# /home/anton/tmp/robsd/src-sysupgrade.diff Since sysupgrade revision 1.19 I can no longer use it with my own snapshots. diff --git usr.sbin/sysupgrade/sysupgrade.sh usr.sbin/sysupgrade/sysupgrade.sh index 75467536f78e..e0b08f1fb36e 100644 --- usr.sbin/sysupgrade/sysupgrade.sh +++ usr.sbin/sysupgrade/sysupgrade.sh @@ -140,6 +140,7 @@ if ! unpriv -f SHA256.sig ftp -N sysupgrade -Vmo SHA256.sig ${URL}SHA256.sig; th fi fi +if false; then # The key extracted from SHA256.sig must precisely match a pattern KEY=$(head -1 < SHA256.sig | cut -d' ' -f5 | \ egrep '^openbsd-[[:digit:]]{2,3}-base.pub$' || true) @@ -147,6 +148,7 @@ if [[ -z $KEY ]]; then echo "Invalid SHA256.sig file" exit 1 fi +fi # If required key is not in the system, get it from a signed bundle if ! [[ -r /etc/signify/$KEY ]]; then