summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2013-03-08 15:13:43 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-12 17:22:11 +0100
commit4d4fe926cb2ad1e624ddaea26f143fa93d867296 (patch)
treedc0806904b1c0f3ba91ea4a293184cf17c857a5e
parent3bf3cd95abf815be091a5398b3796d5e325862b6 (diff)
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.
-rw-r--r--src/core/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index 419cf27a8..895aa2537 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -447,7 +447,8 @@ static int mount_add_default_dependencies(Mount *m) {
447 if (UNIT(m)->manager->running_as != SYSTEMD_SYSTEM) 447 if (UNIT(m)->manager->running_as != SYSTEMD_SYSTEM)
448 return 0; 448 return 0;
449 449
450 p = get_mount_parameters_fragment(m); 450 p = get_mount_parameters(m);
451
451 if (!p) 452 if (!p)
452 return 0; 453 return 0;
453 454