@oxyhyxo try using umount -f and do a pslist-ilU $USER prior to see what’s still running?

@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.

@oxyhyxo oh is it a thing already built into pam?
@dch I guess? I’ll continue digging
@oxyhyxo @dch I'd be interested to know if you get it working. I have a similar setup on my laptop.

@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

gists/OpenZFS Encrypted Homedir Config.md at main

gists

Codeberg.org

@pertho @dch duh an update on the above

The option name is actually "forceunmount" and it seems to work - I'm not heaps keen on doing a zfs umount -f though 😔

@oxyhyxo aah I meant specifically umount -f it aeema to work with even the most stubborn of mount points that zfs unmount won’t and yes you want to know what processes are still running @pertho

@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