Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Stupid init thingy. It's on my nerve, again.
Date: Sun, 15 Mar 2015 13:56:04
Message-Id: CAJ0EP40d3ttzghWeEo1FSsrV3VBH0CeRhUvkox8uy5JQuzde3Q@mail.gmail.com
In Reply to: Re: [gentoo-user] Stupid init thingy. It's on my nerve, again. by Dale
1 On Sun, Mar 15, 2015 at 5:41 AM, Dale <rdalek1967@×××××.com> wrote:
2 > Mike Gilbert wrote:
3 >> On Sat, Mar 14, 2015 at 7:54 PM, Dale <rdalek1967@×××××.com> wrote:
4 >>> Howdy,
5 >>>
6 >>> I'm going to try to keep my cool but ya know. I built me a updated
7 >>> kernel, 3.18.9 to be more precise. A few weeks ago dracut was updated.
8 >>> It went to version dracut-041. Well, it wouldn't build anything. It
9 >>> spit out a bunch of stuff about not finding things that I know is
10 >>> installed such as lvm2. Example below:
11 >>>
12 >>> << SNIP >>
13 >>>
14 >>> That version at least builds the init thingy for me to use. So,
15 >>> question. Why is the old version working but the new version isn't?
16 >>> Why is it not finding lvm2 when I know it is installed because
17 >>> everything but /boot and / is on lvm? Why does it seem like I went
18 >>> through this once before?
19 >>>
20 >> The dracut module for lvm is called 'lvm', not 'lvm2'. Do you have
21 >> something like dracutmodules+="lvm2" in dracut.conf?
22 >>
23 >>
24 >
25 >
26 > I had tried both with no change. I did notice this tho when trying the
27 > new version again.
28 >
29 > [ebuild U ~] sys-kernel/dracut-041::gentoo [034-r4::gentoo]
30 > USE="-debug (-selinux) -systemd% (-device-mapper%*) (-net%)"
31 > DRACUT_MODULES="(-biosdevname%) (-bootchart%) (-btrfs%) (-caps%)
32 > (-cifs%) (-crypt%) (-crypt-gpg%) (-crypt-loop%) (-dash%) (-dmraid%)
33 > (-dmsquash-live%) (-gensplash%) (-iscsi%) (-livenet%) (-lvm%) (-mdraid%)
34 > (-multipath%) (-nbd%) (-nfs%) (-plymouth%) (-ssh-client%) (-syslog%)
35 > (-systemd%)"
36 >E: dracut module 'lvm2' cannot be found or installed.
37 > It seems that everything is disabled regardless of what I put in
38 > make.conf or dracuts conf file. So, how does one tell dracut to enable
39 > lvm? I don't think I need the other stuff. Having lvm would be nice
40 > tho. ;-) It seems to work with the old version just fine but this new
41 > version has something different. I couldn't find anything in the build
42 > log file to give me a hint. Forums didn't help any either, although I
43 > did find a post with the same question I am asking. Just no answer. :/
44 >
45
46 In older versions of the dracut ebuild (<sys-kernel/dracut-036),
47 DRACUT_MODULES was used to select which modules to install.
48
49 In newer versions, DRACUT_MODULES is no longer used; instead, all
50 modules are installed every time. That's why you see all the flags in
51 parentheses: the flags have been removed from the ebuild, but they are
52 effectively enabled now.
53
54 Back to your logs, both of them say they cannot find the 'lvm2'
55 module. This makes sense because 'lvm2' is not a valid dracut module.
56 It seems like 034 just ignores this error, carrying on with building a
57 possibly broken initramfs.
58
59 As far as I can tell, the only way for that missing module message to
60 show up is if you have that non-existing module listed in some dracut
61 config file somewhere. You should check for stale files in
62 /etc/dracut/dracut.conf.d, and in /usr/lib/dracut/dracut.conf.d.
63 Remove any reference to the 'lvm2' module in the dracutmodules or
64 add_dracutmodules variables.
65
66 If you still can't get it working, post the output of dracut --debug
67 foo.img somewhere please. Let's stick with dracut-041; I'm not
68 interested in debugging an older version.

Replies

Subject Author
Re: [gentoo-user] Stupid init thingy. It's on my nerve, again. Dale <rdalek1967@×××××.com>