Having an issue automounting an encrypted directory with fstab: SLES12.5
Hi Everyone! I am on SLES12.5 and could use some serious help.
I was given an existing golden image and told to setup data at rest encryption on the /home directory and the /DATA(our custom Data dir). It was also requersted that I not use a keyfile but make the user enter the password on boot. I did not want to break the system so I decided I would create a new partition for /home and start from there. it ended up being sda9. I used luks to encrypt the partition. opened the partition, mounted it manually successfully. I created the entry in the /etc/crypttab file as follows: Code:
luksHome /dev/sda9 none luks Code:
/dev/mapper/luksHome /mnt ext4 nosuid,nodev,acl,user_xattr 1 2 OpenSuse boot.crypto github The system starts to boot normally, and pauses durring boot to ask me to enter the encryption passphrase. Upon successfully entering the passphrase boot continues and does the following: Code:
WARNING: Locking directory /run/cryptsetup is missing! Code:
ll /dev/mapper/ Code:
ll /dev/mapper/ Code:
/dev/mapper/luksHome /testluksmnt ext4 defaults 1 2 |
Hi,
Can you see how the partition has mounted when it is not in fstab? Compare with the fstab commented line to see what change, maybe you need to update it. Hope that helps. Viel. |
Hi, I can mount it manually and even run mount -av and get a successful mount with no issues. I have a feeling that the OS is trying to mount the partition before it is decrypted but im not sure how to fix the order of operations there.
|
All times are GMT -5. The time now is 10:50 PM. |