From 0329adca74682b26f592483deff3dbdff86d1b32 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 15 Feb 2018 11:08:26 +0100 Subject: [PATCH] lazy-umount-nfs.service: Try normal umount first When this service is started, automount already attempted to unmount the nfs mounts it is responsible for. However, we may have other nfs mounts (e.g. those done manually by a system administrator). If we just disconnect those, we would shutdown before attempting to write dirty data back and release delegations and locks on the server. Try a normal umount before we give up and just disconnect the mounts. --- misc_systemd_units/lazy-umount-nfs.service | 1 + 1 file changed, 1 insertion(+) diff --git a/misc_systemd_units/lazy-umount-nfs.service b/misc_systemd_units/lazy-umount-nfs.service index ffd5aff8..6a386d1b 100644 --- a/misc_systemd_units/lazy-umount-nfs.service +++ b/misc_systemd_units/lazy-umount-nfs.service @@ -7,6 +7,7 @@ DefaultDependencies=false [Service] Type=oneshot RemainAfterExit=yes +ExecStart=/bin/umount -a -t nfs4 ExecStart=/bin/umount -a -t nfs4 -l [Install]