On Sun, Mar 15, 2015 at 5:41 AM, Dale <rdalek1...@gmail.com> wrote:
> Mike Gilbert wrote:
>> On Sat, Mar 14, 2015 at 7:54 PM, Dale <rdalek1...@gmail.com> wrote:
>>> Howdy,
>>>
>>> I'm going to try to keep my cool but ya know.  I built me a updated
>>> kernel, 3.18.9 to be more precise.  A few weeks ago dracut was updated.
>>> It went to version dracut-041.  Well, it wouldn't build anything.  It
>>> spit out a bunch of stuff about not finding things that I know is
>>> installed such as lvm2.  Example below:
>>>
>>> << SNIP >>
>>>
>>> That version at least builds the init thingy for me to use.  So,
>>> question.  Why is the old version working but the new version isn't?
>>> Why is it not finding lvm2 when I know it is installed because
>>> everything but /boot and / is on lvm?  Why does it seem like I went
>>> through this once before?
>>>
>> The dracut module for lvm is called 'lvm', not 'lvm2'. Do you have
>> something like dracutmodules+="lvm2" in dracut.conf?
>>
>>
>
>
> I had tried both with no change.  I did notice this tho when trying the
> new version again.
>
> [ebuild     U ~] sys-kernel/dracut-041::gentoo [034-r4::gentoo]
> USE="-debug (-selinux) -systemd% (-device-mapper%*) (-net%)"
> DRACUT_MODULES="(-biosdevname%) (-bootchart%) (-btrfs%) (-caps%)
> (-cifs%) (-crypt%) (-crypt-gpg%) (-crypt-loop%) (-dash%) (-dmraid%)
> (-dmsquash-live%) (-gensplash%) (-iscsi%) (-livenet%) (-lvm%) (-mdraid%)
> (-multipath%) (-nbd%) (-nfs%) (-plymouth%) (-ssh-client%) (-syslog%)
> (-systemd%)"
>E: dracut module 'lvm2' cannot be found or installed.
> It seems that everything is disabled regardless of what I put in
> make.conf or dracuts conf file.  So, how does one tell dracut to enable
> lvm?  I don't think I need the other stuff.  Having lvm would be nice
> tho.  ;-)  It seems to work with the old version just fine but this new
> version has something different.  I couldn't find anything in the build
> log file to give me a hint.  Forums didn't help any either, although I
> did find a post with the same question I am asking.  Just no answer.  :/
>

In older versions of the dracut ebuild (<sys-kernel/dracut-036),
DRACUT_MODULES was used to select which modules to install.

In newer versions, DRACUT_MODULES is no longer used; instead, all
modules are installed every time. That's why you see all the flags in
parentheses: the flags have been removed from the ebuild, but they are
effectively enabled now.

Back to your logs, both of them say they cannot find the 'lvm2'
module. This makes sense because 'lvm2' is not a valid dracut module.
It seems like 034 just ignores this error, carrying on with building a
possibly broken initramfs.

As far as I can tell, the only way for that missing module message to
show up is if you have that non-existing module listed in some dracut
config file somewhere. You should check for stale files in
/etc/dracut/dracut.conf.d, and in /usr/lib/dracut/dracut.conf.d.
Remove any reference to the 'lvm2' module in the dracutmodules or
add_dracutmodules variables.

If you still can't get it working, post the output of dracut --debug
foo.img somewhere please. Let's stick with dracut-041; I'm not
interested in debugging an older version.

Reply via email to