I have a dm-raid1 with a LUKS encrypted partition md0 on it and I would like it to be mounted automatically when I login, using pam_mount.So far I have configured the pam_mount.conf.xml as follows:<?xml version=1.0 encoding=utf-8 ?><!DOCTYPE pam_mount SYSTEM pam_mount.conf.xml.dtd><pam_mount>  <debug enable=1 />  <mntoptions allow=nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other />  <mntoptions require=nosuid,nodev />  <logout wait=0 hup=0 term=0 kill=0 />  <volume    user=me    path=/dev/mapper/data    mountpoint=/mnt/data    fstype=crypt    cipher=aes-cbc-essiv:sha256    fskeypath=/home/data.key    fskeycipher=aes-256-cbc    fskeyhash=md5 />  <mkmountpoint enable=1 remove=true /></pam_mount>Further I added @include common-pammount to /etc/pam.d/login and /etc/pam.d/gdm.The problem though, is that /dev/mapper/data is not in place when it is about to be mounted. However, the mounting works if I docryptsetup luksOpen /dev/md0 data
mounting an encrypted dm-raid partition on login
software raid;dm crypt