From dd86a893cb513f78eb93f047231c7128b6596339 Mon Sep 17 00:00:00 2001 From: Alan Sikora Date: Mon, 9 Mar 2026 16:36:14 -0300 Subject: [PATCH] Move FUSE unmount hook to its own installer The hook prevents gvfsd-fuse from blocking suspend, not just hibernation. Install it during the config phase so every system gets it, not only those that run hibernation setup. --- bin/omarchy-hibernation-setup | 3 --- install/config/all.sh | 1 + install/config/unmount-fuse.sh | 2 ++ 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 install/config/unmount-fuse.sh diff --git a/bin/omarchy-hibernation-setup b/bin/omarchy-hibernation-setup index 0eba2487..da4629df 100755 --- a/bin/omarchy-hibernation-setup +++ b/bin/omarchy-hibernation-setup @@ -66,9 +66,6 @@ echo "HOOKS+=(resume)" | sudo tee "$MKINITCPIO_CONF" >/dev/null # Ensure keyboard backlight doesn't prevent sleep sudo cp -p "$OMARCHY_PATH/default/systemd/system-sleep/keyboard-backlight" /usr/lib/systemd/system-sleep/ -# Ensure gvfsd-fuse mounts don't prevent sleep -sudo install -m 0755 -o root -g root "$OMARCHY_PATH/default/systemd/system-sleep/unmount-fuse" /usr/lib/systemd/system-sleep/ - # Add resume= kernel parameters so the initramfs resume hook knows where to find the # hibernation image. Without these, resume happens late (after GPU drivers load) and fails. RESUME_DROP_IN="/etc/limine-entry-tool.d/resume.conf" diff --git a/install/config/all.sh b/install/config/all.sh index 14480206..830abbb0 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -18,6 +18,7 @@ run_logged $OMARCHY_INSTALL/config/remove-fcitx5-autostart.sh run_logged $OMARCHY_INSTALL/config/localdb.sh run_logged $OMARCHY_INSTALL/config/walker-elephant.sh run_logged $OMARCHY_INSTALL/config/fast-shutdown.sh +run_logged $OMARCHY_INSTALL/config/unmount-fuse.sh run_logged $OMARCHY_INSTALL/config/sudoless-asdcontrol.sh run_logged $OMARCHY_INSTALL/config/input-group.sh run_logged $OMARCHY_INSTALL/config/makima.sh diff --git a/install/config/unmount-fuse.sh b/install/config/unmount-fuse.sh new file mode 100644 index 00000000..9c44e17f --- /dev/null +++ b/install/config/unmount-fuse.sh @@ -0,0 +1,2 @@ +sudo mkdir -p /usr/lib/systemd/system-sleep +sudo install -m 0755 -o root -g root "$OMARCHY_PATH/default/systemd/system-sleep/unmount-fuse" /usr/lib/systemd/system-sleep/