diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2022-06-02 07:44:19 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2022-06-02 07:44:19 +0000 |
commit | f376c4317cc1870ddf92f6b122f2380a6a3ce382 (patch) | |
tree | fc18dda63d025fb069030498a8b746a784c9a441 /usr.sbin | |
parent | 2ba558279960c620df081aeae0983f1d802e4d0a (diff) |
When running sysupgrade on -stable move to the next release, not
-current.
Found the hard way by & OK sthen
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysupgrade/sysupgrade.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/sysupgrade/sysupgrade.sh b/usr.sbin/sysupgrade/sysupgrade.sh index f9bd572979f..6386081b492 100644 --- a/usr.sbin/sysupgrade/sysupgrade.sh +++ b/usr.sbin/sysupgrade/sysupgrade.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: sysupgrade.sh,v 1.46 2022/03/03 10:12:08 sdk Exp $ +# $OpenBSD: sysupgrade.sh,v 1.47 2022/06/02 07:44:18 florian Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015 Robert Peichaer <rpe@openbsd.org> @@ -112,7 +112,9 @@ esac err "invalid installurl: $MIRROR" if ! $RELEASE && [[ ${#_KERNV[*]} == 2 ]]; then - SNAP=true + if [[ ${_KERNV[1]} != '-stable' ]]; then + SNAP=true + fi fi if $RELEASE && [[ ${_KERNV[1]} == '-beta' ]]; then |