1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Volker Armin Hemmann wrote: |
5 |
> Dale wrote: |
6 |
>> Volker Armin Hemmann wrote: |
7 |
>>> Dale wrote: |
8 |
>>>> I like to copy mine manually. I dunno, I just do. I'm weird that way. |
9 |
>>>> I also have a unique way of naming my kernels so I can keep up with |
10 |
>>>> which is which. |
11 |
>>> well, you can always put the name in the config - and let make install do |
12 |
>>> the copy. That way you get a nice vmlinuz symlink to the latest kernel |
13 |
>>> and vmlinuz.old to the older one - and you never have to touch grub.conf |
14 |
>>> again. |
15 |
>> But that would only allow you to have two kernels laying around. Right |
16 |
>> now I have these: |
17 |
>> |
18 |
> |
19 |
> no, you can have as many kernels as you want. But there is a vmlinuz symlink |
20 |
> to the latest and vmlinuz.old symlink to the previous installed one. |
21 |
> |
22 |
|
23 |
To be precise, the config option CONFIG_LOCALVERSION appends a string to |
24 |
the end of the kernel version, which installkernel uses to place the |
25 |
kernel image. |
26 |
|
27 |
If /boot/vmlinuz exists, then it is moved to /boot/vmlinuz.old, and a |
28 |
*symlink* from /boot/vmlinuz is created to "vmlinuz-${VERSION}". If |
29 |
/boot/vmlinuz did *not* exist before installation, then no symlink is |
30 |
created. installkernel also copies your .config to |
31 |
/boot/config-${VERSION}, performing the same move and symlink operation. |
32 |
In addition, if you *do* install the same kernel version twice, it will |
33 |
move your old version out of the way (to vmlinuz-${VERSION}.old) first, |
34 |
so even if you do forget to update your .config, you will still have |
35 |
both kernels. |
36 |
|
37 |
To see exactly what "make install" does, read /sbin/installkernel (a |
38 |
/bin/sh script), as that's all `make install` calls (well, it first |
39 |
checks for ~/bin/${CROSS_COMPILE}installkernel, and calls it, if it |
40 |
exists, which allows you to customize the installation process). |
41 |
|
42 |
Personally, I will set CONFIG_LOCALVERSION to ".#" or "-r0.#" on a |
43 |
second+ compilation of the same kernel version. (My current kernel is |
44 |
2.6.28-gentoo-r1.2). |
45 |
|
46 |
- -- |
47 |
ABCD |
48 |
-----BEGIN PGP SIGNATURE----- |
49 |
Version: GnuPG v2.0.9 (GNU/Linux) |
50 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
51 |
|
52 |
iEYEARECAAYFAkmFJ1cACgkQOypDUo0oQOouMACcC6abA3gFvOZQbDB5dMnMBAMo |
53 |
D8MAnjr4MSrTG9KiC6cB6fodijrSWjK/ |
54 |
=6Bgu |
55 |
-----END PGP SIGNATURE----- |