systemctl: allow connecting to capsule instances with --capsule=/-C

This commit is contained in:
Lennart Poettering
2024-03-14 11:34:04 +01:00
parent ad963c3f56
commit 56cb74c3cd
3 changed files with 37 additions and 6 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ int acquire_bus(BusFocus focus, sd_bus **ret) {
return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "--global is not supported for this operation.");
/* We only go directly to the manager, if we are using a local transport */
if (arg_transport != BUS_TRANSPORT_LOCAL)
if (!IN_SET(arg_transport, BUS_TRANSPORT_LOCAL, BUS_TRANSPORT_CAPSULE))
focus = BUS_FULL;
if (getenv_bool("SYSTEMCTL_FORCE_BUS") > 0)