User talk:Berendt

From ArchWiki
Jump to navigation Jump to search

mkinitcpio.conf

Are you sure that the configuration of having encrypt before lvm2 in mkinitcpio.conf is correct when doing encryption on top of lvm? System_Encryption_with_LUKS_for_dm-crypt#Encrypting_a_LVM_setup

The configuration here: System_Encryption_with_LUKS_for_dm-crypt#Configuration is different.

Someone seemed to be having issues with that setup here: [1] (Comment at the bottom by: Mervyn on Juni 22, 2010 11:35) It also seems logical to have lvm2 before encrypt, but i'm not sure... that's why I ask. Sudoman 10:44, 23 September 2010 (EDT)


Sorry for the late answer:

I set the HOOKS variable in my /etc/mkinitcpio.conf to "[...] encrypt lvm2 filesystems" and it's working fine.

And no, it's not logical to have the lvm2 hook before encrypt hook, because you've to decrypt the encrypted partition with the PV inside first and afterwards you can activate the LVs in the decrypted PV.

Please re-read the topic "Encrypting a LVM setup". This is a setup to use LVM2 inside an encrypted partition.

--Christian Berendt 01:54, 5 October 2010 (EDT)

Don't worry about the delay. :) I just reread the section we are talking about, and I see that it covers both setups, though only the second one in brief. (Actually, it just barely mentions it. The rest of the section is devoted to LVM on dm-crypt.) It's the fourth paragraph down immediately under "Encrypting a LVM setup". It begins: "To use encryption on top of LVM..." and continues into the 5th paragraph. So, maybe this section should be corrected and put under its own header for clarity and distinction, or it should be deleted. Again, I don't know if my suspicions about the reverse order are true under these conditions, so I would prefer not making the edit myself without an agreement. Sudoman 11:40, 6 October 2010 (EDT)