Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
Date: Tue, 03 Apr 2012 17:50:34
In Reply to: Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs? by Dale
On Tue, Apr 3, 2012 at 8:21 AM, Dale <rdalek1967@×××××.com> wrote:
> Mike Edenfield wrote: > >> It was the debug stuff; every line that look like >> >> "dracut: + stuff here" >> >> was debugging information; AFAICT dracut mounted /dev/sda3 as root then >> it mounted the two other partitions it found. >> >> But this could be a problem (from your other email): >> >> root@fireball / # dracut -H -f /boot/init-thingy >> E: Dracut module "lvm" cannot be found. >> E: Dracut module "lvm" cannot be found. >> >> dracut couldn't find it's lvm module, even though your USE flags are set >> correctly. Can you try re-emerging dracut with its current USE flags? >> >> You should have a folder in /usr/lib/dracut/modules named 'lvm' that has >> a '' script in it, plus probably some other support >> files, if everything got installed correctly. >> >> --Mike >> >> > > > I have re-emerged dracut several times and it still gives the same > error.  I even tried changing versions once to see if it was a bug or > something.  I found others with errors for other modules but no one > posted a fix.  It's a head scratcher for sure. > > Since lvm is not needed for booting YET, I think my main problem is the > kernel and lvm.  Now, even if I boot with the old kernel and no init > thingy, I have to restart lvm before it will let me mount my /data > partition.  I think when I added the needed stuff for dracut and the > init thingy, it messed up something for lvm.  I can't put my finger on > what yet tho. > > The directory you mentions is there and there is all sorts of goodies in > there.  I'm not sure why dracut is not finding it.
I do. I don't use LVM, so i didn't had neither USE=device-mapper, nor DRACUT_MODULES=lvm, so I add them. Then I tried to create my initramfs with LVM, and like in your case, it failed. Using the --debug option for dracut, it *seems* (it's really verbose and I didn't read everything), it seems that it doesn't "find" the lvm module not because it's not there, but because I actually don't have any LVM volumes. So I removed the -H option for dracut to stop looking at my host status, and lo and behold, it included the LVM module. So please, try that. If it works, then there is two options: 1. Dracut has a bug that stops it from detecting your host LVM status; maybe it only checks the "important" or standard partitions, or maybe the checking process itself has a bug. 2. Your LVM configuration (while it works) it's not "canonically" detectable. Either case, please try re-creating your dracut initramfs without the -H option. I think that's the last problem (the other "problem" was that you got scared with the humongous debug output that dracut generates with dr.debug), and so we can then finally put this case to rest. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México