From 1e57ae790f78f4c756d992aabcfda084508161c5 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 26 Dec 2008 17:53:07 +0100 Subject: [PATCH] Adjust kern.bootfile to make savecore(8) work. --- share/examples/rconfig/hammer.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/examples/rconfig/hammer.sh b/share/examples/rconfig/hammer.sh index 39e7187068..826e606310 100644 --- a/share/examples/rconfig/hammer.sh +++ b/share/examples/rconfig/hammer.sh @@ -152,6 +152,13 @@ proc /proc procfs rw 0 0 #pkgbox:/archive /archive nfs ro,intr,bg 0 0 EOF +# Since /boot is a separate partition we need to adjust kern.bootfile +# to make savecore work properly upon boot. +# +cat >> /mnt/etc/sysctl.conf << EOF +kern.bootfile=/boot/kernel +EOF + # Because root is not on the boot partition we have to tell the loader # to tell the kernel where root is. # -- 2.11.4.GIT