How to encrypt /home, so it gets mounted during boot

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



Hi,

I've encrypted my /home partition (which lays on a raid), basically just
for the fun of it ;). I'm now encountering a problem, which isn't that
easy to solve as it seems to me :(.

I've got the following setup:

/dev/sda1 -> /boot
/dev/sda2 -> encryption -> lvm -> /
/dev/sdb1 -> encryption -> lvm -> /home

Now I want to get /home mounted during the bootup. However I have the
following order of hooks, which works fine for my root partition:

"[...] encrypt lvm2 resume filesystems"

Now, while the root lv gets mounted, the initscripts then tries to mount
anything within /etc/fstab, but here lies the problem, because the lvm2
hook hasn't unlocked /dev/sdb1, because it is encrypted, and gets
unencrypted only afterwards (/etc/crypttab).

So what is the procedure here? Is there any easy workaround? How do you
solve these issues?

Best regards,
Karol Babioch

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux