=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.118 retrieving revision 1.121 diff -u -r1.118 -r1.121 --- openbsd/update_openbsd/update_openbsd 2018/12/16 21:10:00 1.118 +++ openbsd/update_openbsd/update_openbsd 2019/03/02 01:02:02 1.121 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: update_openbsd,v 1.117 2018/12/16 20:57:49 andrew Exp $ +# $AFresh1: update_openbsd,v 1.120 2019/03/02 00:34:34 andrew Exp $ # # Copyright (c) 2012 Andrew Fresh # @@ -172,7 +172,7 @@ if [ X"" != X"${MIRROR}" -a X"" == X"${_v}" ]; then if [ X"No" != X"${FORCE_DIR}" ]; then _dir=${FORCE_DIR} - elif sysctl kern.version | grep -q -- '-current '; then + elif sysctl kern.version | grep -q -e '-current ' -e '-beta '; then _dir=snapshots FORCE_DIR=snapshots else @@ -763,6 +763,11 @@ echo Removing /sbin/oreboot rm -f /sbin/oreboot fi + + echo "===> Relinking to create unique kernel..." + sha256 -h /var/db/kernel.SHA256 /bsd + /usr/libexec/reorder_kernel + update_etc OPENUP=$( which openup 2>/dev/null )