3 # Fixup kern.bootfile. In a BOOT+ROOT setup the boot loader does not
4 # understand that the boot partition will be mounted as /boot under root
5 # in the actual system and sets up the kern.bootfile sysctl incorrectly.
6 # This fixes up kern.bootfile.
10 # REQUIRE: FILESYSTEMS
16 start_cmd="fixbootfile_start"
21 case ${fixbootfile} in
25 bootfile=`${SYSCTL_N} kern.bootfile`
26 if [ -f "/boot$bootfile" ]; then
27 ${SYSCTL_W} kern.bootfile="/boot$bootfile"