Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2
Date: Thu, 21 May 2015 08:33:22
Message-Id: 20150521093305.112c9eb8@digimed.co.uk
In Reply to: Re: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2 by Peter Humphrey
1 On Thu, 21 May 2015 09:13:44 +0100, Peter Humphrey wrote:
2
3 > This is my grub.conf (copied in from my e-mail yesterday):
4 >
5 > root (hd0,0)
6 > timeout 10
7 > default 0
8 > fallback 3
9 > color white/blue black/light-gray
10 > splashimage /grub/splash.xpm.gz
11 >
12 > title=Gentoo Linux 3.18.12
13 > kernel /boot/kernel-x86_64-3.18.12-gentoo root=/dev/md5
14 > net.ifnames=0 irqpoll
15 >
16 > title=Gentoo Linux 3.18.12, no X
17 > kernel /boot/kernel-x86_64-3.18.12-gentoo root=/dev/md5
18 > softlevel=nox net.ifnames=0 irqpoll
19 >
20 > title=Gentoo Linux 3.18.12, no network
21 > kernel /boot/kernel-x86_64-3.18.12-gentoo root=/dev/md5
22 > softlevel=nonet net.ifnames=0 irqpoll
23 >
24 > title=Rescue System 3.18.11
25 > kernel /boot/kernel-x86_64-3.18.11-gentoo-rescue root=/dev/sda8
26 > net.ifnames=0 irqpoll
27 >
28 > title=Rescue System 3.18.12
29 > kernel /boot/kernel-x86_64-3.18.12-gentoo-rescue root=/dev/sda8
30 > net.ifnames=0 irqpoll
31 >
32 > I copied it into /etc/grub.d/05_linux. /etc/defaults/grub is all
33 > comments.
34 >
35 That's a GRUB1 file, GRUB2 uses a different syntax so your first entry
36 would become
37
38 menuentry "Gentoo Linux 3.18.12" {
39 linux /boot/kernel-x86_64-3.18.12-gentoo root=/dev/md5 net.ifnames=0 irqpoll
40 }
41
42 Also, you need to copy 40_custom and then add your lines to that. This is
43 because files in /etc/grub.d are executed, so it needs to be a shell
44 script.
45
46
47 --
48 Neil Bothwick
49
50 A wok is what you throw at a wabbit.

Replies

Subject Author
Re: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2 Rich Freeman <rich0@g.o>