Date: Sat, 31 Mar 2007 21:45:55 +0200 From: Martin Tournoij <carpetsmoker@xs4all.nl> To: freebsd-questions@freebsd.org Cc: lalev@uni-svishtov.bg Subject: Re: saving kernel configuration file into the kernel itself Message-ID: <20070331194555.GA24605@xs3.xs4all.nl> In-Reply-To: <1224.212.25.54.147.1175362965.squirrel@mail.uni-svishtov.bg> References: <1224.212.25.54.147.1175362965.squirrel@mail.uni-svishtov.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat 31 Mar 2007 20:03, lalev@uni-svishtov.bg wrote: > I remember that in FreeBSD 4 there was a way to include configuration file > in the kernel being compiled, but I could not remember what it was and I > could not find it in the handbook. Is there such feature in FreeBSD 6 ? >From /usr/src/sys/conf/NOTES : # This allows you to actually store this configuration file into # the kernel binary itself, where it may be later read by saying: # strings -n 3 /boot/kernel/kernel | sed -n 's/^___//p' > MYKERNEL # options INCLUDE_CONFIG_FILE # Include this file in kernel Also check out /usr/src/sys/i386/conf/NOTES Replace i386 with your arch. -- Martin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070331194555.GA24605>