diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-10 02:41:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-10 02:41:06 +0200 |
commit | 4e67ddd6b39c2847cc399ab0874427baa7ea8935 (patch) | |
tree | 075d2522de569fb8a32651ad0728aeb720c8eed1 /src/mount.c | |
parent | b8131a87ccdd9376882ca0a8dd3cfe45172e4c46 (diff) |
units: introduce umount.target for unmounting all file systems
Diffstat (limited to 'src/mount.c')
-rw-r--r-- | src/mount.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mount.c b/src/mount.c index 498732eef1..57c258f9f2 100644 --- a/src/mount.c +++ b/src/mount.c @@ -367,6 +367,10 @@ static int mount_load(Unit *u) { if ((r = unit_add_default_cgroup(u)) < 0) return r; + + if (m->meta.default_dependencies && !path_equal(m->where, "/")) + if ((r = unit_add_two_dependencies_by_name(UNIT(m), UNIT_BEFORE, UNIT_CONFLICTS, SPECIAL_UMOUNT_TARGET, NULL, true)) < 0) + return r; } return mount_verify(m); |