chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000 (10:12 +0200)
commit39be55bb38f955a837a09bbedc2b7c67b6d6f3e3
tree658d4cfa650499556d59dbd87901bd53c673babe
parent1937e3ad6a7f701a09359841cd57e0549c3a3893
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/shared/bus-util.c