]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount: write drop-in file when setting transient properties 2471/head
authorMichael Olbrich <m.olbrich@pengutronix.de>
Wed, 9 Dec 2015 15:02:51 +0000 (16:02 +0100)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Mon, 6 Jun 2016 05:33:54 +0000 (07:33 +0200)
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.

src/core/dbus-mount.c

index 935db7c48ba11c2975b650f218cd030c31e8acb1..b4bbee06482039198def7962379c039119c118e0 100644 (file)
@@ -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;
         }