[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#485789: initramfs-tools: With crypted LVM, tries to start LVM before decryption



On Wed, June 11, 2008 15:26, Martin Michlmayr wrote:
> Adding Max Vozeler and David Härdeman to the CC.
>
> * Didier Raboud <didier@raboud.com> [2008-06-11 15:06]:
...
>> I installed LennyBeta2 (under Qemu) with the graphical installer and
>> chose "crypted LVM". The thing is that on boot, the initramfs firstly
>> tries to open (initiate ?) the LVM before it actually has access to it
>> (because it is encrypted).
>>
>> It results in an error (attached) which could be avoided if the
>> encrypted partition is opened before the LVM is initiated.

It's intentional (although not very aesthetic). The cryptsetup initramfs
scripts allows all other disk-related scripts to run first since you could
have an encrypted LVM volume as well as LVM on an encrypted volume.

After setting up the encrypted volume, the cryptsetup initramfs scripts
will then perform the LVM/EVMS/etc setup when necessary.

So the process is more like this:

  1) LVM/EVMS/md/etc
  2) cryptsetup
  3) LVM/EVMS/md/etc


-- 
David Härdeman




Reply to: