mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
dbus-cgroup: Make sure we overwrite cpuset properties in drop-in
The DBUS property setter overwrites the value of the property but writes a drop-in that extends the value. Let's make sure the drop-in overwrites the property value as well by assigning the empty string first.
This commit is contained in:
parent
95dafd30da
commit
1dbccd6d34
|
@ -1336,7 +1336,7 @@ int bus_cgroup_set_property(
|
|||
new_set = (CPUSet) {};
|
||||
|
||||
unit_invalidate_cgroup(u, CGROUP_MASK_CPUSET);
|
||||
unit_write_settingf(u, flags, name, "%s=%s", name, setstr);
|
||||
unit_write_settingf(u, flags, name, "%s=\n%s=%s", name, name, setstr);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue