gocryptfs: clean session mount/unmount via systemd service #29
Reference in New Issue
Block a user
Delete Branch "unbrot/fedora-OEMDRV:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mount_ecrypt_home: switch from--scopeto a transient systemd user service soExecStopcan runfusermount -uon logout, cleanly unmounting gocryptfsmount_ecrypt_home: add-fgflag to keep gocryptfs in foreground so the service stays active (without it, gocryptfs forks to background, the tracked process exits, and systemd immediately callsExecStop)mount_ecrypt_home: poll/proc/mountsbefore removing passfile, since service mode starts asynchronously and gocryptfs may not have read the file yetlogon_script: gatekwriteconfig5calls onXDG_CURRENT_DESKTOP=KDE; also setloginMode=2(empty session) so previous apps are not restored on loginTest plan
~/dataandgocryptfs-home.servicestays activefusermount -uis called viaExecStop, directory is unmounted cleanlykwriteconfig5calls are skipped🤖 Generated with Claude Code