Revert "systemctl: skip native unit file handling if sysv file handling already handled everything"

This patch only makes sense on top of patches which fix unit name
mangling when --root is used, but those patches have not been
cherry-picked for this branch.

This reverts commit 3a02c6b4dc.

https://bugzilla.redhat.com/show_bug.cgi?id=1128308
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-08-14 21:38:09 -04:00
parent 6279f0e3c4
commit 105f345e6f
-5
View File
@@ -4232,11 +4232,6 @@ static int enable_unit(DBusConnection *bus, char **args) {
if (!args[1])
return 0;
/* If the operation was fully executed by the SysV compat,
* let's finish early */
if (strv_isempty(mangled_names))
return 0;
if (!bus || avoid_bus()) {
if (streq(verb, "enable")) {
r = unit_file_enable(arg_scope, arg_runtime, arg_root, args+1, arg_force, &changes, &n_changes);