On 19.10.2014 13:12, Pierre Labastie wrote:
Le 19/10/2014 11:50, Andrei Banu a écrit :
David
Hi,

Thank you for your answer. Just to make sure (I was not 100% certain), I have
recompiled the kernel and made sure that Device Mapper Support is built-in
(not as a module). However I have the same problems:

- mkinitramfs returns the same errors
- when I boot with no-kmod initrd, it gives the same error ("...root file
system does not exist") and in /dev/mapper there is only one char device
called control but no vg_i5linux-lfs and no vg_i5linux-lv_swap.

And without initrd it ends with a panic.

I am not sure: is the kernel meant to create the /dev/mapper LVM logical
volumes or it's the initrd's job?
The kernel does not create the /dev/mapper files, that is why you need an
initrd. In the initrd, it is the job of udev to create the device nodes, and
it does this when "vgchange -ay" is run. Normally, this is run by the initrd,
but maybe there is something which prevents that.

what you could try when you are dropped to the shell (sh-4.3) is:

vgchange -ay

and see if you now have the files in /dev/mapper.

BTW, I assume you are not using the systemd version of the LFS book. I am not
sure mklinitramfs in the BLFS book is compatible with systemd.

Also, just to check, do you have the /dev/sda* nodes, when listing /dev?
And how can I fix the mkinitramfs errors?
As I told in my preceding post, they cannot be fixed if there are no modules
in the directories:
/lib/modules/$KERNEL_VERSION/kernel/{crypto,fs,lib}
/lib/modules/$KERNEL_VERSION/kernel/drivers{block,ata,md,firewire}
/lib/modules/$KERNEL_VERSION/kernel/drivers/{scsi,message,pcmcia,virtio}
/lib/modules/$KERNEL_VERSION/kernel/drivers/usb/{host,storage}

But normally, those errors do not prevent an initrd with version to be
generated. So if you prefer using an initrd with version, you can use the
generated one. But I do not think your problem comes from using the no-kmods
initrd.

Pierre
Hi,

I have no vgchange available so I can't run it but I do have /dev/sda* devices after booting into the disfunctional LFS.
No dm* devices though.

I am using systemd version of LFS. So if it's not compatible with the mkinitramfs from BLFS, this is bad.

Thanks!
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to