Skip Navigation

Ability to mount ZFS datasets after login

Hello. I configured mounting of encrypted home directory after login according to this article https://wiki.archlinux.org/title/ZFS#PAM_module

But I have additional datasets in another pool which I want to be mounted inside my home directory (they are unencrypted).

The problem it that I get them mounted before my homedir is mounted if I have canmount=on configured

I tried to tinker with zfs-mount-generator but couldn't make it mount my datasets after login.

I know that I can mount them elsewhere and have symlinks but I wonder whether there is a way mount them automatically after login.

Can anyone show me the right direction?

Comments

1