core: add [Enable|Disable]UnitFilesWithFlags DBUS methods

System Internals / systemd - Luca Boccassi [] - 4 September 2020 15:56 UTC

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.

836540070d core: add [Enable|Disable]UnitFilesWithFlags DBUS methods
man/org.freedesktop.systemd1.xml | 26 ++++++++++++++
src/core/dbus-manager.c | 73 ++++++++++++++++++++++++++++++++++------
src/portable/portablectl.c | 11 ++----
src/shared/install.c | 13 +++++--
src/shared/install.h | 8 +++--
5 files changed, 108 insertions(+), 23 deletions(-)


  • Share