summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysupgrade
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2020-01-26 22:08:36 +0000
committerbenno <benno@openbsd.org>2020-01-26 22:08:36 +0000
commit6cae9f3e297b15f9d3d72190de3a78cea3989869 (patch)
tree9e20d42417c411fc676fd06c24a3b6fe1a1568f3 /usr.sbin/sysupgrade
parentRepair more of the issues that i found in filescan() while investigating (diff)
downloadwireguard-openbsd-6cae9f3e297b15f9d3d72190de3a78cea3989869.tar.xz
wireguard-openbsd-6cae9f3e297b15f9d3d72190de3a78cea3989869.zip
Log the old kernel version before doing the upgrade. Makes it easier
to figure out what version you were tunning before the upgrade when you hit a bug/problem after the upgrade. ok sthen@
Diffstat (limited to 'usr.sbin/sysupgrade')
-rw-r--r--usr.sbin/sysupgrade/sysupgrade.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sysupgrade/sysupgrade.sh b/usr.sbin/sysupgrade/sysupgrade.sh
index cafd6e26720..ef2cd904d5b 100644
--- a/usr.sbin/sysupgrade/sysupgrade.sh
+++ b/usr.sbin/sysupgrade/sysupgrade.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: sysupgrade.sh,v 1.36 2019/12/01 10:30:37 ajacoutot Exp $
+# $OpenBSD: sysupgrade.sh,v 1.37 2020/01/26 22:08:36 benno Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015 Robert Peichaer <rpe@openbsd.org>
@@ -198,6 +198,7 @@ echo Fetching updated firmware.
fw_update || echo "Warning: firmware not updated."
install -F -m 700 bsd.rd /bsd.upgrade
+logger -t sysupgrade -p kern.info "installed new /bsd.upgrade. Old kernel version: $(sysctl -n kern.version)"
sync
if ${REBOOT}; then