Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 May 2004 14:45:56 +0100
From:      Scott Mitchell <scott+freebsd@fishballoon.org>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: kernel
Message-ID:  <20040515134556.GA468@tuatara.fishballoon.org>
In-Reply-To: <20040513214910.GA2334@gothmog.gr>
References:  <20040512074547.82863.qmail@web25005.mail.ukl.yahoo.com> <1765051546.20040512120849@ipb.redline.ru> <200405121735.50781.Jan.Christian.Meyer@idi.ntnu.no> <20040513214910.GA2334@gothmog.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 14, 2004 at 12:49:10AM +0300, Giorgos Keramidas wrote:
> On 2004-05-12 17:35, Jan Christian Meyer wrote:
> > > MYKERNEL is name of the custom kernel. If you want to build a new
> > > kernel, you must give it some name, for example MYKERNEL.
> snip
> > 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.
> snip
> > # cd /usr/src/sys/i386/conf
> > # ln -s /root/kernel-config/MYKERNEL
> 
> FWIW, I keep my kernel configs outside of /usr/src too.
> 
>     diomedes> ls -ld CELERON
>     lrwxr-xr-x  1 root  wheel  31 May 14  2003 CELERON -> /local/sys/CELERON
>     diomedes> _
> 
> > Thus, editing, config and compilation works perfectly by the book, but
> > if I feel like it, I can nuke /usr/src/sys entirely [...]
> 
> ... which I promptly went ahead and did once.  Only to discover I had
> also nuked my "precious" (sic) kernel config.  That made me think of
> ways to avoid the same silliness in the future.  The symlink was,
> naturally, the first thought that I came up with :-)

One side-effect of symlinking kernel configs to watch out for:  If you
happen to 'make buildkernel' on one machine, then try to 'make
installkernel' on another, with /usr/src mounted over NFS, the kernel
config still has to be accessible to the installing machine - which may or
may not work, depending where your symlink points to.  I'm not sure if this
is also the case for the standalone kernel build process using config(8).

I worked around this by keeping the configs in /usr/src/sys/i386/conf, but
making sure that directory was included in my daily backups.

	Scott

-- 
===========================================================================
Scott Mitchell           | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England       | 0x54B171B9 |  don't get sucked into jet engines"
scott at fishballoon.org | 0xAA775B8B |      -- Anon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040515134556.GA468>