From bd47b0cfdcb72cffe9e92cbab2a40e509b9d9141 Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Fri, 24 Jul 2015 00:08:19 -0400 Subject: [PATCH] Use 'which' to locate fuser since fuser path is different in Fedora and Debian --- vm-systemd/qubes-mount-home.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vm-systemd/qubes-mount-home.service b/vm-systemd/qubes-mount-home.service index c6be2b5..bbed16c 100644 --- a/vm-systemd/qubes-mount-home.service +++ b/vm-systemd/qubes-mount-home.service @@ -6,7 +6,8 @@ Before=qubes-gui-agent.service Type=oneshot RemainAfterExit=yes ExecStart=/usr/lib/qubes/init/mount-home.sh -ExecStop=/sbin/fuser -kMm /home ; /bin/umount /home +# Fedora and Debian have different paths for fuser, so use 'which' +ExecStop=/bin/sh -c '`/usr/bin/which fuser` -kMm /home' ; /bin/umount /home ExecStopPost=-/bin/umount /rw [Install]