diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-12-09 16:02:51 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-06-06 07:33:54 +0200 |
commit | 96f5957f1f0d98584bb463d73616a6755e02624b (patch) | |
tree | aa3e22848ff00090cab0a538d2d248cb56c6c54d | |
parent | b294b79fb0f9749afa53624c8f06b145ea2c1525 (diff) |
mount: write drop-in file when setting transient properties
This fixes transient mount units in general. With this change,
'from_fragment' is for transient mount units. As a result, the normal logic
for 'fragment' mount units vs. 'mountinfo' mount units works for transient
mount units as well.
-rw-r--r-- | src/core/dbus-mount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/dbus-mount.c b/src/core/dbus-mount.c index 935db7c48b..b4bbee0648 100644 --- a/src/core/dbus-mount.c +++ b/src/core/dbus-mount.c @@ -157,6 +157,9 @@ static int bus_mount_set_transient_property( if (!p) return -ENOMEM; + unit_write_drop_in_format(UNIT(m), mode, name, "[Mount]\n%s=%s\n", + name, new_property); + free(*property); *property = p; } |