mount: don't create depdency for device node of root fs, since it is always there

This commit is contained in:
Lennart Poettering 2010-08-21 01:51:55 +02:00
parent 6309077509
commit 8e4d105ddf
1 changed files with 1 additions and 1 deletions

View File

@ -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;