Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2004 17:35:50 +0200
From:      Jan Christian Meyer <Jan.Christian.Meyer@idi.ntnu.no>
To:        "Mikhail E. Zakharov" <zakharov@ipb.redline.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: kernel
Message-ID:  <200405121735.50781.Jan.Christian.Meyer@idi.ntnu.no>
In-Reply-To: <1765051546.20040512120849@ipb.redline.ru>
References:  <20040512074547.82863.qmail@web25005.mail.ukl.yahoo.com> <1765051546.20040512120849@ipb.redline.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
> MYKERNEL is name of the custom kernel. If you want to build a new
> kernel, you must give it some name, for example MYKERNEL. In
> handbook you are advised to create a kernel "MYKERNEL" as a copy of
> kernel "GENERIC":
> # cd /usr/src/sys/i386/conf
> # cp GENERIC MYKERNEL
> Then you should edit MYKERNEL and so on as described in handbook.

Just to add a little something for flavor, I've found it useful to 
keep my config file elsewhere and use a symbolic link from 
/usr/src/sys/i386/conf, i.e.

# cd /root
# mkdir kernel-config
# cd kernel-config
# cp /usr/src/sys/i386/conf/GENERIC ./MYKERNEL
# cd /usr/src/sys/i386/conf
# ln -s /root/kernel-config/MYKERNEL

Thus, editing, config and compilation works perfectly by the book, but 
if I feel like it, I can nuke /usr/src/sys entirely and reinstall the 
kernel sources without losing the precious customised config file.

Of course it is no different from backing up the config file before 
reinstalling, but I've found it convenient a couple of times when 
noodling with my kernels.

Regards,
 -Jan Christian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405121735.50781.Jan.Christian.Meyer>