Fix broken Conflicts options

This commit is contained in:
Eelco Dolstra 2013-11-18 15:42:05 +01:00
parent 08a85c2152
commit f8a034172a
2 changed files with 3 additions and 5 deletions

View File

@ -230,10 +230,8 @@ in
{ description = "Load Kernel Modules"; { description = "Load Kernel Modules";
wantedBy = [ "sysinit.target" "multi-user.target" ]; wantedBy = [ "sysinit.target" "multi-user.target" ];
before = [ "sysinit.target" "shutdown.target" ]; before = [ "sysinit.target" "shutdown.target" ];
unitConfig = conflicts = [ "shutdown.target" ];
{ DefaultDependencies = "no"; unitConfig.DefaultDependencies = "no";
Conflicts = "shutdown.target";
};
serviceConfig = serviceConfig =
{ Type = "oneshot"; { Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;

View File

@ -55,9 +55,9 @@ in
{ description = "Setup Virtual Console"; { description = "Setup Virtual Console";
wantedBy = [ "sysinit.target" "multi-user.target" ]; wantedBy = [ "sysinit.target" "multi-user.target" ];
before = [ "sysinit.target" "shutdown.target" ]; before = [ "sysinit.target" "shutdown.target" ];
conflicts = [ "shutdown.target" ];
unitConfig = unitConfig =
{ DefaultDependencies = "no"; { DefaultDependencies = "no";
Conflicts = "shutdown.target";
ConditionPathExists = "/dev/tty1"; ConditionPathExists = "/dev/tty1";
}; };
serviceConfig = serviceConfig =