slashbeast / better-initramfs

Small and reliable initramfs solution supporting (remote) rescue shell, lvm, dmcrypt luks, software raid, tuxonice, uswsusp and more.
BSD 3-Clause "New" or "Revised" License
318 stars 54 forks source link

luks/lvm for /usr but not / #17

Closed KevinMKorb closed 10 years ago

KevinMKorb commented 10 years ago

Is it possible to support /usr being stored in luks encrypted lvm2 pv but / being a plain partition or md raid1?

I tried specifying an enc_root= for the pv but without the root= being part of that there doesn't appear to be any attempt to open the luks.

At the rescueshell I can luksopen and pvscan then my /usr is mountable.

KevinMKorb commented 10 years ago

Nevermind. I was being a dummy and supplying the options on the initrd= line instead of the kernel command line.

slashbeast commented 10 years ago

for future reference, this should be easly handled, simple "root=/dev/sda1 luks enc_root /dev/sda2 lvm"

assuming hat sda2 is your lvm pv, it will mount in unencrypted form sda2 as enc_root and lvm will pick it as pv, rest should be transparent.