Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 2004 17:06:42 -0600
From:      Nathan Kinkade <nkinkade@ub.edu.bz>
To:        August Simonelli <augusts@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: uname -v shows no difference after buildkernel and installkernel etc
Message-ID:  <20040824230642.GR3767@gentoo-npk.bmp.ub>
In-Reply-To: <46fa40c104082415322575cdc1@mail.gmail.com>
References:  <46fa40c104082403205419fd65@mail.gmail.com> <20040824143236.GM3767@gentoo-npk.bmp.ub> <46fa40c104082415322575cdc1@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--6tPipYVl+OcoAvSh
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Aug 25, 2004 at 08:32:48AM +1000, August Simonelli wrote:
> > > August
> >=20
> > What does your symlink look like?  So you put the newly built kernel in
> > /root/kernels, then did something like?:
> >=20
> > # ln -s /root/kernels/mykernel /boot/kernel/kernel
>=20
>=20
> I followed the example in 8.3:
>=20
> # cd /usr/src/sys/i386/conf
> # mkdir /root/kernels
> # cp GENERIC /root/kernels/MYKERNEL  =20
> # ln -s /root/kernels/MYKERNEL
>=20
> so now I have the following symlink:
>=20
> /usr/src/sys/i386/conf/MYCUSTOM -> /root/kernels/MYCUSTOM
>=20
> and I built and installed with that as my KERNCONF value. I do still
> have GENERIC sitting in that directory. Does it use GENERIC first by
> default?
>=20
> Thanks again,
>=20
> august

I apologize, when you said:

"... did a custom kernel (placing in /root/kernels ..."

I took it too literally, thinking that for some odd reason you had put
the actual built (binary) kernel into /root/kernels and were symlinking
=66rom /boot/kernel to that directory, as opposed to simply putting the
kernel config file there.  However, is it just a typing mistake that you
say you link to MYKERNEL, but you say the actual links points to
MYCUSTOM?  Also, what does an `ls -l /boot/kernel/kernel` reveal?  Does
the modification time coincide with the time you actually built your
custom kernel?

Nathan

Side note
---------
I once tried the advice to put custom kernel config files at a
subdirectory of /root, but personally found this more confusing in the
long run.  In about 5 years of running FreeBSD and building custom
kernels I have never deleted the entire /usr/src directory and
subsequently realized I had blasted my only copy of a custom kernel
config.  I personally found it to be one more layer of indirection that
hassled me from time to time, and it was one more thing I had to
remember.  If I were worried about the possibility of deleting my custom
kernel config files accidentally while one day recursively removing
/usr/src, then I would personally prefer to just copy that kernel config
to some other location for safe keeping.  It's just my personal
preference.  One of the things that is so distressing to me about
certain GNU/Linux distros is all the levels of indirection and seeming
complexity - symlinks pointing to symlinks and things of that nature.

--
PGP Public Key: pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xD8527E49

--6tPipYVl+OcoAvSh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBK8oCO0ZIEthSfkkRApmeAKDBx7yBEKveOf7H49fpQqLzYUGFWACaArld
e74J/Oc9HXbZ8DT1R1JQEN0=
=XIoa
-----END PGP SIGNATURE-----

--6tPipYVl+OcoAvSh--



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