Gentoo Archives: gentoo-user

From: Tom H <tomh0665@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] problems getting systemd to work
Date: Thu, 15 May 2014 14:14:56
Message-Id: CAOdo=SyzptwOFDNtz7gANakUrHBarSPFkpovW7qmQu6yA43s_A@mail.gmail.com
In Reply to: Re: [gentoo-user] problems getting systemd to work by "Canek Peláez Valdés"
1 On Thu, May 15, 2014 at 2:18 AM, Canek Peláez Valdés <caneko@×××××.com> wrote:
2 >
3 > OK, I was a little mystified about why dracut-036 worked on my system
4 > and 037 didn't. Before I tried any workaround, I wanted to know what
5 > changed from the previous version to the current one.
6 >
7 > So I generated an initramfs with dracut-036-r4 and another one with
8 > dracut-037-r1, and I tried to see what changed from one to the other.
9 > The answer is surprisingly easy: in /etc/cmdline.d/, the following
10 > files where in the 036-r4 version, but not in the 037-r4:
11 >
12 > 90crypt.conf
13 > 90lvm.conf
14 > 90mdraid.conf
15 > base.conf
16 >
17 > Te contents of those files are (90crypt.conf is empty):
18 >
19 > 90lvm.conf
20 > rd.lvm.lv=vg/vol1
21 > rd.lvm.lv=vg/vol4
22 > rd.lvm.lv=vg/vol3
23 >
24 > 90mdraid.conf
25 > rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12
26 >
27 > base.conf
28 > ro
29 >
30 > So I just changed my /etc/default/grub file:
31 >
32 > GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash
33 > rd.lvm.lv=vg/vol1 rd.lvm.lv=vg/vol4 rd.lvm.lv=vg/vol3
34 > rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12"
35 >
36 > I regenerated my GRUB2 config, and now again my LVM test system works
37 > perfectly with the latest dracut version.
38 >
39 > The thing is, I *ALWAYS* use the -H (host only) option, so it was my
40 > understanding that the command line should be automatically generated,
41 > and it was on 036, but now it doesn't in 037. I think that's a bug.
42 >
43 > John, with respect to your case: did you used "dracut --print-cmdline"
44 > to get the command line? Also, have you tried to use -H to generate
45 > your initramfs?
46
47 There are two new options, "--hostonly-cmdline" (store kernel command
48 line arguments needed in the initramfs) and "--no-hostonly-cmdline"
49 (Do not store kernel command line arguments needed in the initramfs).