core: fix getting information about mount unit

We should not try to get information about mount unit from fragment
if the unit was created because of /proc/self/mountinfo event.
This commit is contained in:
Michal Sekletar 2013-03-08 15:13:43 +01:00 committed by Harald Hoyer
parent 3bf3cd95ab
commit 4d4fe926cb

View file

@ -447,7 +447,8 @@ static int mount_add_default_dependencies(Mount *m) {
if (UNIT(m)->manager->running_as != SYSTEMD_SYSTEM)
return 0;
p = get_mount_parameters_fragment(m);
p = get_mount_parameters(m);
if (!p)
return 0;