Fix umount when virtiofs was never used (slice does not exist).
This commit is contained in:
parent
09ffead361
commit
9560228f3b
1 changed files with 2 additions and 2 deletions
|
@ -30,9 +30,9 @@ if [[ "$mtp" =~ "/lmn/media/$usr/share" ]] ; then
|
|||
sleep 5 # leave some time to write caches …
|
||||
sudo -u ${usr} killall gvfsd | systemd-cat
|
||||
sudo -u ${usr} killall dbus-daemon | systemd-cat
|
||||
systemctl kill system-virtiofs.slice
|
||||
systemctl kill system-virtiofs.slice || true
|
||||
# debug to find processes blocking umount:
|
||||
# lsof > /tmp/lsof.log
|
||||
# lsof >> /var/log/lsof.log
|
||||
fi
|
||||
|
||||
## Just umount:
|
||||
|
|
Loading…
Add table
Reference in a new issue