Issue with mounting lvm partition
Issue #2
resolved
Hello, i have some issue with mounting the lvm with the better-initramfs. I build it out of source with this commands:
bootstrap/bootstrap-all
make prepare
make image
cp -v ./output/initramfs.cpio.gz /boot
I'm using grub(1).
grub.conf:
root (hd1,0)
kernel /boot/kernel-3.12.0-gentoo enc_root=/dev/gentoo/root lvm luks root=/dev/mapper/gentoo-root rootfstype=ext4
initrd /boot/initramfs.cpio.gz
After i'm entering my password for the Luk, he wanted to map the /dev/gentoo/root to /dev/mapper/enc_root and also /dev/mapper/gentoo-root to /newroot
What i'm doing wrong?
I have attached an image to this issue of my booting screen
Comments (3)
-
repo owner -
repo owner I will go ahead and close it, feel free to open it if provided solutions does not work for you.
-
repo owner - changed status to resolved
- Log in to comment
Hi,
Looks like you have encrypted LVM's LV, then you do set root= to /dev/mapper/enc_root, as this is where /dev/mapper/gentoo-root -> <decryption> -> /dev/mapper/enc_root goes.
your enc_root and root is the same (/dev/gentoo/XXX = /dev/mapper/gentoo-XXX).
Adjusting root= is the solution.