Hallo,
> 1) The initramfs script that is in the book is a bit too simplistic > for actually being able to fix anything with regards to lvm. It > needs to have the lvm tools actually added to it. lvm is needed, as > vgscan and a few of the other tools are needed and are indeed > missing. I'm not using lvm in LFS myself but I had to investigate a dracut problem in RHEL 7.7 just today. In the dracut man page there is a nice example on how to manually mount an encrypted LVM volume from the dracut emergency shell, then continue with the normal boot process. Maybe this helps a bit for your investigations. ===================================================================== 1. Inspect your partitions using parted # parted /dev/sda -s p Model: ATA HTS541060G9AT00 (scsi) Disk /dev/sda: 60.0GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 10.8GB 107MB primary ext4 boot 2 10.8GB 55.6GB 44.7GB logical lvm 2. You recall that your root volume was a LVM logical volume. Scan and activate any logical volumes. # lvm vgscan # lvm vgchange -ay 3. You should see any logical volumes now using the command blkid: # blkid /dev/sda1: UUID="3de247f3-5de4-4a44-afc5-1fe179750cf7" TYPE="ext4" /dev/sda2: UUID="Ek4dQw-cOtq-5MJu-OGRF-xz5k-O2l8-wdDj0I" TYPE="LVM2_member" /dev/mapper/linux-root: UUID="def0269e-424b-4752-acf3-1077bf96ad2c" TYPE="crypto_LUKS" /dev/mapper/linux-home: UUID="c69127c1-f153-4ea2-b58e-4cbfa9257c5e" TYPE="ext3" /dev/mapper/linux-swap: UUID="47b4d329-975c-4c08-b218-f9c9bf3635f1" TYPE="swap" 4. From the output above, you recall that your root volume exists on an encrypted block device. Following the guidance disk encryption guidance from the Installation Guide, you unlock your encrypted root volume. # UUID=$(cryptsetup luksUUID /dev/mapper/linux-root) # cryptsetup luksOpen /dev/mapper/linux-root luks-$UUID Enter passphrase for /dev/mapper/linux-root: Key slot 0 unlocked. 5. Next, make a symbolic link to the unlocked root volume # ln -s /dev/mapper/luks-$UUID /dev/root 6. With the root volume available, you may continue booting the system by exiting the dracut shell # exit ================================================================ Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page