Mount at login of LVM on LUKS on LVM

Kernels & Hardware, configuring network, installing services

Mount at login of LVM on LUKS on LVM

Postby krono86 » 2018-05-04 11:45

Hello!
In the last days I configured on my debian system an LVM-LUKS-LVM architecture.
When I wont use the encrypted volumes I have to:

Code: Select all
cryptsetup luksOpen /dev/debian-vg/encrypted estorage
mount -t ext4 /dev/encrypted-vg/encrypted-lv1 /mnt/encrypted1
mount -t ext4 /dev/encrypted-vg/encrypted-lv2 /mnt/encrypted2
...


When I want to close the encrypted volumes

Code: Select all
umount /mnt/encrypted1
umount /mnt/encrypted2
...
vgchange -a n encrypted-vg
cryptsetup luksClose estorage


All works fine, but I would like to mount the volumes at the user login.
I just tried using pam_mount but it seems not work with LVM on LUKS.
Thank you very much!

Ivan
krono86
 
Posts: 7
Joined: 2018-03-13 10:46

Re: Mount at login of LVM on LUKS on LVM

Postby krono86 » 2018-05-09 14:43

UP!
krono86
 
Posts: 7
Joined: 2018-03-13 10:46

Re: Mount at login of LVM on LUKS on LVM

Postby rolf3945 » 2018-05-13 19:23

Why LVM-luks-LVM? Is that really required?

Put the commands into a script that is called during user login. Password request will remain an issue.

Regards, rolf
rolf3945
 
Posts: 7
Joined: 2009-06-11 19:29

Re: Mount at login of LVM on LUKS on LVM

Postby krono86 » 2018-05-14 08:02

Could I manage the password using pam auth?
Thanks for reply.

Ivan
krono86
 
Posts: 7
Joined: 2018-03-13 10:46


Return to System configuration

Who is online

Users browsing this forum: sjukfan and 7 guests

fashionable