Gentoo Archives: gentoo-user

From: Hinnerk van Bruinehsen <h.v.bruinehsen@×××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Grub2 and is the upgrade a tooth puller.
Date: Sun, 01 Jul 2012 23:37:16
Message-Id: 4FF0DEC6.1060105@fu-berlin.de
In Reply to: Re: [gentoo-user] Grub2 and is the upgrade a tooth puller. by Dale
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 30.06.2012 22:24, Dale wrote:
5 <SNIP>
6 >>
7 > Ahhhh, I can name it kernel. That makes more sense to me. Me
8 > votes for kernel-x.y.z. Heck, this may work for me.
9 >
10 > I still don't like the deal of having to run something after
11 > changing the kernel tho. It seems to lilo-ish to me.
12 >
13 > Dale
14 >
15 > :-) :-)
16 >
17
18 You could also change the bash script:
19
20 it resides in /etc/grub.d/10_linux
21
22 the relevant part is:
23
24 case "x$machine" in
25 xi?86 | xx86_64)
26 list=`for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
27 if grub_file_is_not_garbage "$i" ; then echo -n "$i
28 " ; fi
29 done` ;;
30 *)
31 list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-*
32 /vmlinux-* /boot/kernel-* ; do
33 if grub_file_is_not_garbage "$i" ; then echo -n "$i
34 " ; fi
35 done` ;;
36 esac
37
38
39 as you can see there are 2 parts: one für x86 and x86_64 and one for
40 the rest.
41 If you add it to the list it will find everything, you could even call
42 it "my-personal-kernel".
43
44 You only should add the path as well (/ or /boot/).
45
46 I've doing so for the initramfs for a while (I have one static
47 initramfs which don't need to be updated for every kernel since my
48 config disables kernel modules).
49
50 Works fine. - You should only remember to look at it after a grub
51 update (though normally etc-update and co take care of that)
52
53 WKR
54 Hinnerk
55 -----BEGIN PGP SIGNATURE-----
56 Version: GnuPG v2.0.19 (GNU/Linux)
57 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
58
59 iQEcBAEBAgAGBQJP8N7GAAoJEJwwOFaNFkYc+1wIAI401zc2YVMeXgDWl7uTwufZ
60 7/GeU81fQwyhJod7bcvVecvW3TaQ82IL8oubI18uc3OsjE4QxMLUwC0rJay1RPdU
61 sm/Y2hF+hRhPoowERj4AcvIDK3Uze9SLaLDkbRyadVqtD6/mdIAqMo+Bj6AT6tPV
62 SXWy0butZ4JiVpWGOaqza0Nlk90ClfUk6v8+COprFG6LPRB0R/+U73jtG7RjfF/r
63 QFnsdMSXQeOpDheRyQvpXiVDKFEeTsB9Hn9YZg8HemgXXxuHhZrnwMi9RWUgCVBi
64 QUJJnbDcayXKk24MOiEpwDCxppRuOAkT+Avb5lC8uZr0JBb23T5LVBdcFc2oeNM=
65 =n02R
66 -----END PGP SIGNATURE-----