summaryrefslogtreecommitdiff
path: root/sys/stand
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-04-10 19:41:04 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-04-10 19:41:04 +0000
commitf27d348a56f72ad4b8458532afa076f51fc53b19 (patch)
treea663366a2489a631257bce078c1b40a0f69a8d28 /sys/stand
parentaf3f57581473251fbe1dd0188f44169d81143d45 (diff)
Unbreak "boot bsd.up" line in /etc/boot.conf
Found the hard way by Raf Czlonka (rczlonka AT gmail), thanks! OK deraadt
Diffstat (limited to 'sys/stand')
-rw-r--r--sys/stand/boot/boot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/stand/boot/boot.c b/sys/stand/boot/boot.c
index ea452c54ece..31a2ddf8a0a 100644
--- a/sys/stand/boot/boot.c
+++ b/sys/stand/boot/boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.c,v 1.47 2019/04/10 04:17:37 deraadt Exp $ */
+/* $OpenBSD: boot.c,v 1.48 2019/04/10 19:41:03 florian Exp $ */
/*
* Copyright (c) 2003 Dale Rahn
@@ -76,13 +76,13 @@ boot(dev_t bootdev)
cmd.addr = (void *)DEFAULT_KERNEL_ADDRESS;
cmd.timeout = boottimeout;
- st = read_conf();
-
if (upgrade()) {
strlcpy(cmd.image, "/bsd.upgrade", sizeof(cmd.image));
printf("upgrade detected: switching to %s\n", cmd.image);
}
+ st = read_conf();
+
#ifdef HIBERNATE
int bootdev_has_hibernate(void);