#45 mount logical volume on crypted volume group?

pam-mount
open
pam-mount (40)
5
2011-03-15
2011-02-06
Peter Kruse
No

Hello,

is it possible to mount a logical volume of a crypted physical volume for a volume group with pam-mount (v2.3)?
The setup is this:
# cryptsetup status old
/dev/mapper/old is active:
cipher: aes-cbc-essiv:sha256
keysize: 256 bits
device: /dev/sda2
offset: 2056 sectors
size: 2929771994 sectors
mode: read/write

This "old" is the physical volume for a volume group "lion" that includes the logical volume "root" which can be mounted.
So the filesystem I need is /dev/lion/root, but I don't know how to put this setup in pam_mount.conf.xml:

<volume fstype="crypt" cipher="aes-cbc-essiv:sha256" path="/dev/lion/root" mountpoint="/old">

this doesn't work because the physical volume is unknown? This setup is a result of a debian installation,
but I now switched to ubuntu on another disk and would like to have the partition available, currently
I mount this volume manually but thought it could be possible.

thanks,

Peter

Discussion

  • Jan Engelhardt
    Jan Engelhardt
    2011-03-15

    • status: open --> pending
     
  • Jan Engelhardt
    Jan Engelhardt
    2011-03-15

    Currently not. mount.crypt only does [losetup?,decrypt,mount], in this order. I am trying to think of how such may be implemented.

     
  • Peter Kruse
    Peter Kruse
    2011-03-15

    Thanks a lot, that would be great!

     
  • Peter Kruse
    Peter Kruse
    2011-03-15

    • status: pending --> open