From 8d7f84ac8e3d50e998932b6dce3536207cc731af Mon Sep 17 00:00:00 2001 From: rowan Date: Fri, 7 Mar 2025 10:57:44 -0600 Subject: [PATCH] lazy unmount --- README.md | 4 ++-- configctl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 53335a3..9eb1f09 100644 --- a/README.md +++ b/README.md @@ -30,5 +30,5 @@ executing the previous command will do the following enabling the service file will mount the config on next user login -# Issues -while technically supported, it's not possible to change or unmount a changeset once mounted. this is because the mount will become immediately busy, preventing `fusermount` from being able to unmount it. +# Notes +when unmounting or changing a configuration changeset, the target mountpoint will be *lazily* unmounted. there is no guarantee when the volume will be successfully unmount. that said, it should be safe enough to remount a new configuration immediately after. diff --git a/configctl b/configctl index 76a4530..b9bd851 100755 --- a/configctl +++ b/configctl @@ -33,7 +33,7 @@ if [ ! -d "$UPPER_DIR" ]; then fi if [ "$2" == "unmount" ]; then - fusermount -u "$MOUNT_POINT" + fusermount -zu "$MOUNT_POINT" echo "Unmounted $MOUNT_POINT" exit 0 fi