saving kernel configuration file into the kernel itself
Martin Tournoij
carpetsmoker at xs4all.nl
Sat Mar 31 19:45:58 UTC 2007
On Sat 31 Mar 2007 20:03, lalev at 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
More information about the freebsd-questions
mailing list