summaryrefslogtreecommitdiff
path: root/src/mount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-28 03:38:52 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-28 03:38:52 +0200
commitf14e15f8affe906a45d8afc76c302a49cd1f70ee (patch)
tree5af3ffd29e33fddde628d8a79ea7400a9025aaf6 /src/mount.c
parent799fd0fd23028a58e1f605c6b0d9aaab65b4fb1f (diff)
unit: replace recursive_stop by stop_retroactively to simplify things a little
Diffstat (limited to 'src/mount.c')
-rw-r--r--src/mount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mount.c b/src/mount.c
index d62ce8f408..0b67fbed5d 100644
--- a/src/mount.c
+++ b/src/mount.c
@@ -70,6 +70,9 @@ static void mount_init(Unit *u) {
* already trying to comply its last one. */
m->exec_context.same_pgrp = true;
+ /* Make sure we unmount when the devices we require go away */
+ m->meta.stop_retroactively = true;
+
m->timer_watch.type = WATCH_INVALID;
m->control_command_id = _MOUNT_EXEC_COMMAND_INVALID;