Use 'which' to locate fuser since fuser path is different in Fedora and Debian

This commit is contained in:
Jason Mehring 2015-07-24 00:08:19 -04:00
parent d04e5b5039
commit bd47b0cfdc
No known key found for this signature in database
GPG Key ID: 1BB9B1FB5A4C6DAD

View File

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