Browse Source

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
OPENBSD_6_2
deraadt 7 years ago
parent
commit
8ba7cdbe8d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/etc/rc

+ 2
- 1
src/etc/rc View File

@ -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


Loading…
Cancel
Save