core: do not add default dependencies to /usr mount unit

This makes no difference if /usr was mounted in the initrd,
and brings the behaviour of legacy systems closer to those
with a propper initrd.
This commit is contained in:
Jon Severinsson 2014-07-22 00:39:13 +02:00 committed by Lennart Poettering
parent e830abd5ff
commit b24de9d21d
1 changed files with 2 additions and 1 deletions

View File

@ -380,7 +380,8 @@ static int mount_add_default_dependencies(Mount *m) {
if (!p)
return 0;
if (path_equal(m->where, "/"))
if (path_equal(m->where, "/") ||
path_equal(m->where, "/usr"))
return 0;
if (mount_is_network(p)) {