[systemd-commits] src/core
Lennart Poettering
lennart at kemper.freedesktop.org
Mon Jun 17 12:15:14 PDT 2013
src/core/mount.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 602c0e740f8290cc9c4f13f2eb4b23fbbd7a8d2b
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jun 17 21:12:53 2013 +0200
mount: when learning about the root mount from mountinfo, don't add conflicting dep for umount.target
That way systemd won't try to umount it at shutdown.
diff --git a/src/core/mount.c b/src/core/mount.c
index 10073b5..0ad3d95 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -1538,9 +1538,11 @@ static int mount_add_one(
if (r < 0)
goto fail;
- r = unit_add_dependency_by_name(u, UNIT_CONFLICTS, SPECIAL_UMOUNT_TARGET, NULL, true);
- if (r < 0)
- goto fail;
+ if (!path_equal(where, "/")) {
+ r = unit_add_dependency_by_name(u, UNIT_CONFLICTS, SPECIAL_UMOUNT_TARGET, NULL, true);
+ if (r < 0)
+ goto fail;
+ }
unit_add_to_load_queue(u);
} else {
More information about the systemd-commits
mailing list