Am Freitag, 2. Januar 2009 18:50:09 schrieb Jens Müller: > Hi, > > how can I achieve the following with minimal manual intervention based > on genkernel's default linuxrc script? > > 1) Scan for physical volumes, setup volume groups (I guess that is what > "startVolumes" does). > > 2) Do (the equivalent of) cryptsetup luksOpen /dev/mapper/vg1-crypt > crypt_pv. First, with passphrase, later, key from USB would be nice. > > 3) Rescan for PVs (= recognize /dev/mapper/crypt_pv as a physical > volume), setup the new volume group contained therein. > > 4) Add rootfs and swap from /dev/mapper/vg2-root and /dev/mapper/vg2-swap Just to make sure I understand what you want to do: You have encrypted physical volumes which you want to combine into an LVM volume group and then put logical volumes into this VG? Bye... Dirk