]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: print better message if default target is masked
authorDavid Tardon <dtardon@redhat.com>
Wed, 2 Mar 2022 20:02:21 +0000 (21:02 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Feb 2023 21:45:15 +0000 (06:45 +0900)
commit7c78a19322962bb386f87bcaf37bf650cca1c400
treea5709649c88b5c0f15839c19bc57363d49af86ae
parentfe56f21ae3943e79ce9faeb40b79c7093c50e644
systemctl: print better message if default target is masked

If the default target is masked, `systemctl get-default` prints

  Failed to get default target: Operation not possible due to RF-kill

That's a bit too cryptic, so let's make it clear what's actually
happening.

Fixes #26589.
src/core/dbus-manager.c
src/systemctl/systemctl-set-default.c