]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: print a notice when set-default is not effective 15108/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Mar 2020 16:57:06 +0000 (17:57 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Mar 2020 11:11:09 +0000 (12:11 +0100)
commit12877da21508c6e55e3421930ad1781b982e1155
tree430c2076c1b9ed962c1206fd886d92c8d09ff809
parent5e59431c53645a6f506fa4270fdc0063ee27c927
systemctl: print a notice when set-default is not effective

$ sudo ln -svf multi-user.target /run/systemd/generator.early/default.target
'/run/systemd/generator.early/default.target' -> 'multi-user.target'
$ sudo build/systemctl set-default --root=/ sysinit.target
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/sysinit.target.
Note: "multi-user.target" is the default unit (possibly a runtime override).

The output is not super informative, but it should be enough to point the user in
the right direction.

Fixes #3645.
src/systemctl/systemctl.c