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
319 stars 49 forks source link

Multiple luks under one lvm #7

Closed jimtahu closed 12 years ago

jimtahu commented 12 years ago

Not sure whether this a bug or feature request. I have a system with 3 partitions, each encrypted with LUKS, which are combined into a root with LVM, this allows me to resize my root and still have good encryption. I tried several methods, but as far as I can figure, I only can specify one enc_root, and LVM can't activate the volume group with only one third of the necessary partitions, so init chokes, and I had to manually run cryptsetup &etc. I ended up modifying InitializeLUKS() to open all three (hard coded values, atm).

slashbeast commented 12 years ago

I think I can support colon separated list of block devices, so you could do enc_root=/dev/sda2:/dev/sdb4:/dev/vda12. what you think about such approch?

jimtahu commented 12 years ago

That would be quite excellent

jimtahu commented 12 years ago

Closing, as I have a fix.