You are not logged in.

#1 2012-03-29 06:12:52

manutenfruits
Member
Registered: 2012-03-29
Posts: 3

(LVM) Boot with LUKS on the entire PV, not LV

Hi!

I just installed Arch with the next config:

/dev/sda1 -> /boot
/dev/sda2 -> encrypted, contains a LVM pv, with a vg called "linux"
/dev/linux/arch -> /
/dev/linux/home -> /home

I have done this before, but with separate encrypted logical volumes, and all I needed to do is modify rc.conf and mkinitpcio.conf, add cryptdevice to the grub2 arguments for the kernel, and good to go.

Now I changed rc.conf USELVM to "yes", I added the hooks ecrypt, lvm2 in that order just before filesystem, and my kernel line in grub lookslike this:

linux /vmlinuz-linux root=/dev/linux/arch cryptdevice=/dev/sda2:lvm ro quiet

How should I configure this? And also, I used luks on the pv, but I don't know if I should be doing that (after all, I was encrypting all LVs with the same password)

Thanks!

Offline

#2 2012-04-01 22:25:33

mr.MikyMaus
Member
From: disabled
Registered: 2006-03-31
Posts: 285

Re: (LVM) Boot with LUKS on the entire PV, not LV

Hi,

I use pretty much the same configuration. Except that my boot parameter says cryptdevice=/dev/sda2:root. The :root part, as I get it, tells kernel that the root partition is on that physical device and hence it has to be cryptmounted first.


What happened to Arch's KISS? systemd sure is stupid but I must have missed the simple part ...

... and who is general Failure and why is he reading my harddisk?

Offline

Board footer

Powered by FluxBB