]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add [Enable|Disable]UnitFilesWithFlags DBUS methods
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 1 Sep 2020 16:08:29 +0000 (17:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Sep 2020 15:56:37 +0000 (17:56 +0200)
commit836540070dcc1325f6159df40dc64f3cdf95e8e3
tree785f97ed42eb362bf5860c08c9a74ef7050836d4
parentf3f14c573bc1eb7e6f9d74be2c39f9a2be84e39d
core: add [Enable|Disable]UnitFilesWithFlags DBUS methods

The new methods work as the unflavoured ones, but takes flags as a
single uint64_t DBUS parameters instead of different booleans, so
that it can be extended without breaking backward compatibility.
Add new flag to allow adding/removing symlinks in
[/etc|/run]/systemd/system.attached so that portable services
configuration files can be self-contained in those directories, without
affecting the system services directories.
Use the new methods and flags from portablectl --enable.

Useful in case /etc is read-only, with only the portable services
directories being mounted read-write.
man/org.freedesktop.systemd1.xml
src/core/dbus-manager.c
src/portable/portablectl.c
src/shared/install.c
src/shared/install.h