@dch til about the existence of pslist 🧐
I havent implemented any scripts to fire on logout and yet **something** is calling unmount. All I did was update pam to add pam_zfs_key.
@pertho @dch okay so digging through pam_zfs_key.c tells me there is a "nounmount" flag.
updating /etc/pam.d/login as per https://codeberg.org/oxyhyxo/gists/src/branch/main/OpenZFS%20Encrypted%20Homedir%20Config.md mounts the dataset on login but does not attempt to unmount it on logout.
I tried passing the "force_unmount" option but I still get the error.
*shrugs* this is beyond my ken
@dch @pertho yeah I still dont know who or what is holding the mount open.
open a console as root, switch to a new virtual terminal, login as user.
Logout as user, unmount failed.
lsof as root - no open files in the users home directory
zfs unmount $home_dataset as root unmounts the dataset without issue
**scratches head**
its like login is tripping over itself