-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Volker Armin Hemmann wrote:
> Dale wrote:
>> Volker Armin Hemmann wrote:
>>> Dale wrote:
>>>> I like to copy mine manually.  I dunno, I just do.  I'm weird that way.
>>>> I also have a unique way of naming my kernels so I can keep up with
>>>> which is which.
>>> well, you can always put the name in the config - and let make install do
>>> the copy. That way you get a nice vmlinuz symlink to the latest kernel
>>> and vmlinuz.old to the older one - and you never have to touch grub.conf
>>> again.
>> But that would only allow you to have two kernels laying around.  Right
>> now I have these:
>>
> 
> no, you can have as many kernels as you want. But there is a vmlinuz symlink 
> to the latest and vmlinuz.old symlink to the previous installed one.
> 

To be precise, the config option CONFIG_LOCALVERSION appends a string to
the end of the kernel version, which installkernel uses to place the
kernel image.

If /boot/vmlinuz exists, then it is moved to /boot/vmlinuz.old, and a
*symlink* from /boot/vmlinuz is created to "vmlinuz-${VERSION}".  If
/boot/vmlinuz did *not* exist before installation, then no symlink is
created.  installkernel also copies your .config to
/boot/config-${VERSION}, performing the same move and symlink operation.
 In addition, if you *do* install the same kernel version twice, it will
move your old version out of the way (to vmlinuz-${VERSION}.old) first,
so even if you do forget to update your .config, you will still have
both kernels.

To see exactly what "make install" does, read /sbin/installkernel (a
/bin/sh script), as that's all `make install` calls (well, it first
checks for ~/bin/${CROSS_COMPILE}installkernel, and calls it, if it
exists, which allows you to customize the installation process).

Personally, I will set CONFIG_LOCALVERSION to ".#" or "-r0.#" on a
second+ compilation of the same kernel version. (My current kernel is
2.6.28-gentoo-r1.2).

- --
ABCD
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmFJ1cACgkQOypDUo0oQOouMACcC6abA3gFvOZQbDB5dMnMBAMo
D8MAnjr4MSrTG9KiC6cB6fodijrSWjK/
=6Bgu
-----END PGP SIGNATURE-----


Reply via email to