mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Set kernelname in bootconfig to the kernel file
Summary: The kernel reads 'kernelname' to set the kern.bootfile sysctl. By setting this, 'make installkernel' will backup the running kernel as appropriate. Reviewed by: nwhitehorn Differential Revision: https://reviews.freebsd.org/D15660
This commit is contained in:
parent
8472f76005
commit
fdb600af60
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ if [ `uname -m` == powerpc ]; then
|
|||
if [ "$platform" == ps3 -o "$platform" == powernv ]; then
|
||||
rootpart=$(awk '{ if($2 == "/") printf("%s:%s\n", $3, $1); }' $PATH_FSTAB)
|
||||
mkdir -p $BSDINSTALL_CHROOT/boot/etc/
|
||||
echo FreeBSD=\'/kernel/kernel vfs.root.mountfrom=${rootpart}\' > $BSDINSTALL_CHROOT/boot/etc/kboot.conf
|
||||
echo FreeBSD=\'/kernel/kernel kernelname=/boot/kernel/kernel vfs.root.mountfrom=${rootpart}\' > $BSDINSTALL_CHROOT/boot/etc/kboot.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue