Hi,

When I'm upgrading my machines, I find it useful to have BUILDINFO
file around. Tested on RPi3.

Please carbon-copy me in any replies. Thank you.

openbsd-rpi# sysupgrade -s -n
Fetching from https://cdn.openbsd.org/pub/OpenBSD/snapshots/arm64/
SHA256.sig   100% |******************************|  1453       00:00
Signature Verified
Verifying old sets.
BUILDINFO    100% |******************************|    54       00:00
Verifying sets.
Fetching updated firmware.
Will upgrade on next reboot

openbsd-rpi# reboot
... [successfull upgrade]
openbsd-rpi# ls -1A /home/_sysupgrade/ | wc -l
       0


OpenBSD 6.6-current (GENERIC.MP) #513: Wed Mar 18 16:41:35 MDT 2020
    dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP


Index: sysupgrade.sh
===================================================================
RCS file: /cvs/src/usr.sbin/sysupgrade/sysupgrade.sh,v
retrieving revision 1.37
diff -u -p -u -r1.37 sysupgrade.sh
--- sysupgrade.sh       26 Jan 2020 22:08:36 -0000      1.37
+++ sysupgrade.sh       20 Mar 2020 06:30:51 -0000
@@ -152,9 +152,9 @@ if cmp -s /var/db/installed.SHA256 SHA25
        exit 0
 fi
 
-# INSTALL.*, bsd*, *.tgz
+# BUILDINFO, INSTALL.*, bsd*, *.tgz
 SETS=$(sed -n -e 's/^SHA256 (\(.*\)) .*/\1/' \
-    -e '/^INSTALL\./p;/^bsd/p;/\.tgz$/p' SHA256)
+    -e '/^BUILDINFO$/p;/^INSTALL\./p;/^bsd/p;/\.tgz$/p' SHA256)
 
 OLD_FILES=$(ls)
 OLD_FILES=$(rmel SHA256 $OLD_FILES)

-- 
Regards,
 Mikolaj

Reply via email to