diff options
Diffstat (limited to 'src/core/automount.c')
-rw-r--r-- | src/core/automount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/automount.c b/src/core/automount.c index 8318deef8a..b0d43a3ef4 100644 --- a/src/core/automount.c +++ b/src/core/automount.c @@ -94,7 +94,7 @@ static void unmount_autofs(Automount *a) { automount_send_ready(a, a->expire_tokens, -EHOSTDOWN); if (a->where) { - r = repeat_unmount(a->where, MNT_DETACH); + r = repeat_unmount(a->where, MNT_DETACH|UMOUNT_NOFOLLOW); if (r < 0) log_error_errno(r, "Failed to unmount: %m"); } @@ -647,7 +647,7 @@ fail: safe_close_pair(p); if (mounted) { - r = repeat_unmount(a->where, MNT_DETACH); + r = repeat_unmount(a->where, MNT_DETACH|UMOUNT_NOFOLLOW); if (r < 0) log_error_errno(r, "Failed to unmount, ignoring: %m"); } |