From 8ba7cdbe8d974a8a3814aa716659ca5f8840268c Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 19 Jun 2017 22:50:50 +0000 Subject: [PATCH] As early as possible, create a link /bsd.booted to the /bsd kernel we presume we booted from. If you boot from another kernel, we cannot help you later with hibernate, sorry -- The kernel does not get a useable filename from the bootblocks. In the bootblocks, detect a live hibernate signature and boot from /bsd.booted instead. with yasuoka, lots of discussion with mlarkin, ok tom --- src/etc/rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/etc/rc b/src/etc/rc index 4a1e190b..1bdac689 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.502 2017/06/14 21:39:53 rpe Exp $ +# $OpenBSD: rc,v 1.503 2017/06/19 22:50:50 deraadt Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the @@ -377,6 +377,7 @@ mount -a -t nonfs,vnd # others aren't hurt.) mount -uw / chmod og-rwx /bsd +ln -fh /bsd /bsd.booted rm -f /fastboot