1 |
On Wed, May 14, 2014 at 5:26 PM, <covici@××××××××××.com> wrote: |
2 |
[snip] |
3 |
> |
4 |
> Well, the workaround sort of worked -- it went through the initrd -- I |
5 |
> had debug in the kernel command line, but it did not stop for nothing! |
6 |
> When it went to the real root, however it did not activate any of the |
7 |
> lvm volumes I had except for what I specified in the kernel command |
8 |
> line, causing things not to work well. Also, I noticed that if insisted |
9 |
> on using the predictable network names, even though I have |
10 |
> /etc/udev/rules.d/70-persistent-net.rules and |
11 |
> /etc/udev/rules.d/80-name-slot.rules which work fine in openrc to give |
12 |
> me back my eth* names. So all in all, it was a mess and took me to an |
13 |
> emergency shell and that was the end of that. I did eventually activate |
14 |
> some volumes by lvchange -aay, but obviously that would not work well. |
15 |
|
16 |
OK, I was a little mystified about why dracut-036 worked on my system |
17 |
and 037 didn't. Before I tried any workaround, I wanted to know what |
18 |
changed from the previous version to the current one. |
19 |
|
20 |
So I generated an initramfs with dracut-036-r4 and another one with |
21 |
dracut-037-r1, and I tried to see what changed from one to the other. |
22 |
The answer is surprisingly easy: in /etc/cmdline.d/, the following |
23 |
files where in the 036-r4 version, but not in the 037-r4: |
24 |
|
25 |
90crypt.conf |
26 |
90lvm.conf |
27 |
90mdraid.conf |
28 |
base.conf |
29 |
|
30 |
Te contents of those files are (90crypt.conf is empty): |
31 |
|
32 |
90lvm.conf |
33 |
rd.lvm.lv=vg/vol1 |
34 |
rd.lvm.lv=vg/vol4 |
35 |
rd.lvm.lv=vg/vol3 |
36 |
|
37 |
90mdraid.conf |
38 |
rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12 |
39 |
|
40 |
base.conf |
41 |
ro |
42 |
|
43 |
So I just changed my /etc/default/grub file: |
44 |
|
45 |
GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash |
46 |
rd.lvm.lv=vg/vol1 rd.lvm.lv=vg/vol4 rd.lvm.lv=vg/vol3 |
47 |
rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12" |
48 |
|
49 |
I regenerated my GRUB2 config, and now again my LVM test system works |
50 |
perfectly with the latest dracut version. |
51 |
|
52 |
The thing is, I *ALWAYS* use the -H (host only) option, so it was my |
53 |
understanding that the command line should be automatically generated, |
54 |
and it was on 036, but now it doesn't in 037. I think that's a bug. |
55 |
|
56 |
John, with respect to your case: did you used "dracut --print-cmdline" |
57 |
to get the command line? Also, have you tried to use -H to generate |
58 |
your initramfs? |
59 |
|
60 |
Regards. |
61 |
-- |
62 |
Canek Peláez Valdés |
63 |
Profesor de asignatura, Facultad de Ciencias |
64 |
Universidad Nacional Autónoma de México |