Sonntag, 6. Januar 2008

Auto luksOpen and lvm mounting

It won't ask for the LUKS passphrase during startup and have some problems with mounting the LVM volumes afterwards correctly, though I had setup /etc/crypttab correctly.

Adding this:

/etc/initramfs-tools/conf.d/cryptroot:
target=LUKSVOLUME,source=/dev/sda2,lvm=MYVOLGROUP-ROOT

with the correct UPPERCASE values and copying those scripts:

cp /usr/share/initramfs-tools/hooks/cryptroot /etc/initramfs-tools/hooks/cryptroot
cp /usr/share/initramfs-tools/scripts/local-top/cryptroot /etc/initramfs-tools/scripts/local-top/cryptroot

and regenerating the initramfs with update-initramfs did the thing finally!

So my LVM on top of luks is now working on the laptop too, yeeha.

Thanks to this guide.