From: Lennart Poettering Date: Fri, 20 Aug 2010 23:51:55 +0000 (+0200) Subject: mount: don't create depdency for device node of root fs, since it is always there X-Git-Tag: v8~22 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=8e4d105ddfd53fa146e03cee9d6fcc2e932975ac mount: don't create depdency for device node of root fs, since it is always there --- diff --git a/src/mount.c b/src/mount.c index ac33787e6..b667ae52c 100644 --- a/src/mount.c +++ b/src/mount.c @@ -361,7 +361,7 @@ static int mount_load(Unit *u) { else if (m->from_proc_self_mountinfo && m->parameters_proc_self_mountinfo.what) what = m->parameters_proc_self_mountinfo.what; - if (what) + if (what && !path_equal(m->where, "/")) if ((r = unit_add_node_link(u, what, u->meta.manager->running_as == MANAGER_SYSTEM)) < 0) return r;