summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machinectl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c
index 149b5d8e60..b9e3848d18 100644
--- a/src/machine/machinectl.c
+++ b/src/machine/machinectl.c
@@ -1616,6 +1616,12 @@ static int enable_machine(int argc, char *argv[], void *userdata) {
if (r < 0)
return bus_log_create_error(r);
+ if (streq(argv[0], "enable")) {
+ r = sd_bus_message_append(m, "s", "machines.target");
+ if (r < 0)
+ return bus_log_create_error(r);
+ }
+
for (int i = 1; i < argc; i++) {
_cleanup_free_ char *unit = NULL;