systemctl: refuse --capsule=foo with --system
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 4 Aug 2024 05:07:13 +0000 (14:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 4 Aug 2024 05:21:32 +0000 (14:21 +0900)
commitbcf982223cc5d051818dc88866a42f6a08f39a4a
tree86dc6209b34f71f2fcfa1b1bf49f5720c27f5fd1
parentb75c13731ee0867a8d7889348fc8da1869af7551
systemctl: refuse --capsule=foo with --system

Fixes the following assertion:
===
systemctl --capsule=hoge --system reboot
Assertion 'runtime_scope == RUNTIME_SCOPE_USER' failed at src/shared/bus-util.c:479, function bus_connect_transport(). Aborting.
Aborted (core dumped)
===

Follow-up for 56cb74c3cd1358d7d0b3f613feaf2eeab601a6bd.
src/systemctl/systemctl.c