Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Grub2 and softlevels
Date: Sat, 25 Jan 2014 12:18:49
Message-Id: 1807298.2hOQhl805R@wstn
1 Hello list,
2
3 James's recent thread on grub2 with several kernels prompted me to have
4 another play with grub2.
5
6 I followed the grub2 migration guide[1] up to and including where it says "At
7 this point you should reboot your machine and select GRUB2 Chainload." I did
8 that and found I was offered only one kernel, and something about advanced
9 options, which I couldn't make head nor tail of. That one kernel did boot ok,
10 but when I rebooted again into grub legacy and booted the same kernel my
11 volume groups had not started. One more reboot fixed that.
12
13 Now, my question is how to have grub2 offer me a choice of kernels from all
14 those that are present in /boot (a separate ext2 partition). Not only that,
15 but pass different softlevel selectors to them. Here's my grub.conf to
16 illustrate what I mean:
17
18 #
19 # Boot menu configuration file - Grub-legacy
20 #
21
22 root (hd0,0)
23 timeout 10
24 default 1
25 fallback 4
26 color white/blue black/light-gray
27 splashimage /grub/splash.xpm.gz
28
29 title GRUB2 Chainload
30 kernel /boot/grub/i386-pc/core.img
31 boot
32
33 title=Gentoo Linux 3.10.25
34 kernel /boot/kernel-x86_64-3.10.25-gentoo root=/dev/md5 net.ifnames=0
35
36 title=Gentoo Linux 3.10.25, no X
37 kernel /boot/kernel-x86_64-3.10.25-gentoo root=/dev/md5 softlevel=no-x net.ifnames=0
38
39 title=Gentoo Linux 3.10.25, no network
40 kernel /boot/kernel-x86_64-3.10.25-gentoo root=/dev/md5 softlevel=no-net net.ifnames=0
41
42 title=Gentoo Linux 3.10.17
43 kernel /boot/kernel-x86_64-3.10.17-gentoo root=/dev/md5 net.ifnames=0
44
45 title=Gentoo Linux 3.10.17, no X
46 kernel /boot/kernel-x86_64-3.10.17-gentoo root=/dev/md5 softlevel=no-x net.ifnames=0
47
48 title=Gentoo Linux 3.10.17, no network
49 kernel /boot/kernel-x86_64-3.10.17-gentoo root=/dev/md5 softlevel=no-net net.ifnames=0
50
51 title=Memtest86+
52 kernel /boot/memtest86plus/memtest86+-4.20.bin
53
54 title=Rescue System 3.8.13
55 kernel /boot/kernel-x86_64-3.8.13-gentoo-rescue root=/dev/sda8 net.ifnames=0
56
57 title=Rescue System 3.10.7-r1
58 kernel /boot/kernel-x86_64-3.10.7-r1-gentoo-rescue root=/dev/sda8 net.ifnames=0
59
60 I've been operating this way for years and maintained the kernel versions
61 manually. That was not a lot of work, with the help of some elementary bash-
62 ing and copy&pasting, and I don't want the flexibility of boot options thrown
63 away by switching to a supposedly better grub.
64
65 Any ideas anyone?
66
67 [1] https://wiki.gentoo.org/wiki/GRUB2_Migration
68
69 --
70 Regards
71 Peter

Replies

Subject Author
Re: [gentoo-user] Grub2 and softlevels Tanstaafl <tanstaafl@×××××××××××.org>
[gentoo-user] Re: Grub2 and softlevels Martin Vaeth <martin@×××××.de>
Re: [gentoo-user] Grub2 and softlevels Mike Gilbert <floppym@g.o>