]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/install.c
systemctl/core: ignore masked units in preset-all
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 16 Apr 2016 23:31:53 +0000 (19:31 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 17 Apr 2016 01:51:09 +0000 (21:51 -0400)
commit9a0a413a195a21888cf926be5595d0efc1eef0fe
tree80034840b635cecbb8d2fff9416a833e244b0e01
parent76ec966f0e33685f8331603805c0349adceea836
systemctl/core: ignore masked units in preset-all

With any masked unit that would that would be enabled by presets, we'd get:

test@rawhide $ sudo systemctl preset-all
Failed to execute operation: Unit file is masked.

test@rawhide $ sudo systemctl --root=/ preset-all
Operation failed: Cannot send after transport endpoint shutdown

Simply ignore those units:

test@rawhide $ sudo systemctl preset-all
Unit xxx.service is masked, ignoring.
src/core/dbus-manager.c
src/shared/bus-util.c
src/shared/install.c
src/shared/install.h
src/systemctl/systemctl.c