As early as possible, create a link /bsd.booted to the /bsd kernel we
authorderaadt <deraadt@openbsd.org>
Mon, 19 Jun 2017 22:50:50 +0000 (22:50 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 19 Jun 2017 22:50:50 +0000 (22:50 +0000)
commit7a1d3142411b38b7dd34351892039e53b5d7cf80
tree198781b16fdc1228b65e0fdd014e11c26c9218f0
parentafd0ab5d3d5f040bbc02cf4c27e3190ff1871a82
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
etc/rc
sys/arch/amd64/include/biosvar.h
sys/arch/amd64/stand/boot/Makefile
sys/arch/amd64/stand/efiboot/Makefile.common
sys/arch/amd64/stand/libsa/diskprobe.c
sys/arch/i386/include/biosvar.h
sys/arch/i386/stand/boot/Makefile
sys/arch/i386/stand/libsa/diskprobe.c
sys/stand/boot/boot.c