mirror of
https://github.com/systemd/systemd.git
synced 2026-08-07 08:30:57 +00:00
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:
committed by
Harald Hoyer
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user