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?


Thank you. I managed to do it by adding rules for zfs mount to sudoers. But .profile didn’t work for me and since I need datasets to be mounted on graphical login I added login and logout scripts in KDE settings.