You are not logged in.

#1 2019-05-20 08:11:21

nomme
Member
Registered: 2016-04-20
Posts: 7

Automount NFS under LUKS mount

Hi

I have this mount setup (a bit simplified).

/                        # btrfs mount
|-- home                 # ext4 on LUKS mount
     |-- nomme
          |-- local_dir1
          |-- nfs_dir     # NFS mount

I have followed this page to mount /home at login, Dm-crypt/Mounting_at_login.

I have previously been using x-systemd.automount to mount the NFS share but that seems very difficult now when decryting /home at login considering this sentence from the manual.

Directories of automount points (and any parent directories) are automatically created if needed

So when the automount for the NFS share is activated it access /home which is not yet decrypted. The automount hangs there until timeout and becomes inactive after that.

I looked into autofs but it seems to just mount over /home/nomme thus hiding local_dir1.

Is there any other way of adjusting either automount of autofs or another way of automatically mounting the NFS share after /home has been mounted? The only option I can think of is to decrypt the partition using crypttab thus ensuring /home is mounted before the automount is activated.

Thanks in advance.

Offline

Board footer

Powered by FluxBB