RetroFed Forums
Your home away from modern life.
Ability to mount ZFS datasets after login
Post Reply
AuthorMessage
Marzanna scribe.disroot.org Marzanna@scribe.disroot.org
Joined: 2025-02-15
Quote

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?

5   Original
ik5pvx lemmy.world ik5pvx@lemmy.world
Joined: 2023-06-23
#2 · Quote Reply

canmount=off and then mount them in your .profile or .bashrc ?

2
Marzanna scribe.disroot.org Marzanna@scribe.disroot.org
Joined: 2025-02-15
#3 · Quote Reply

canmount=off and then mount them in your .profile or .bashrc ?

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.

1
Post Reply
Back to top