mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-06-15 18:25:53 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user