Skip to content

Commit

Permalink
mount: write drop-in file when setting transient properties
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
michaelolbrich committed Jun 6, 2016
1 parent b294b79 commit 96f5957
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/dbus-mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 96f5957

Please sign in to comment.