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:
parent
3bf3cd95ab
commit
4d4fe926cb
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue