Re: saving kernel configuration file into the kernel itself



On Sat 31 Mar 2007 20:03, lalev@xxxxxxxxxxxxxxx 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
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Compiling(running make) the kernel!
    ... Here are the config file and the error i get while compiling the kernel. ... # device lines is also present in the ./LINT configuration file. ... # To support HyperThreading, HTT is needed in addition to SMP and APIC_IO ... # PCI Ethernet NICs that use the common MII bus controller code. ...
    (freebsd-questions)
  • Re: make fails on device iir on freebsd 4.10
    ... If Generic compiles, then my file would compile too ... because I only copied Generic and comment out iir. ... My configuration file is now: ... # Kernel Configuration Files: ...
    (freebsd-questions)
  • 5.0-RELEASE missing info
    ... /usr/src/sys/i386/conf to set up my kernel configuration file. ... there was nothing in the GENERIC configuration file or in NOTES to tell me ... enabled during installation, ...
    (freebsd-questions)
  • Re: make buildkernel ERROR ?Why?
    ... this is my first time I customize my kernel. ... >configuration file too much to make a comparison with GENERIC ... # Floating point support - do not disable. ... # PCI Ethernet NICs that use the common MII bus controller code. ...
    (freebsd-questions)
  • Re: 5.0-RELEASE missing info
    ... > Naturally I chose to set up FreeBSD. ... kernel specific to that architecture. ... > configuration file and compiled and installed the new kernel and IT ...
    (freebsd-questions)