chiark / gitweb /
Make systemctl --root look for files in the proper places
[elogind.git] / src / systemctl / systemctl.c
index 91d8032945fbe5899287a859f528f9d890a347ba..a60a3019887fd821928960e180231ff0533ec030 100644 (file)
@@ -5002,7 +5002,7 @@ static int enable_sysv_units(const char *verb, char **args) {
         /* Processes all SysV units, and reshuffles the array so that
          * afterwards only the native units remain */
 
-        r = lookup_paths_init(&paths, SYSTEMD_SYSTEM, false, NULL, NULL, NULL);
+        r = lookup_paths_init(&paths, SYSTEMD_SYSTEM, false, arg_root, NULL, NULL, NULL);
         if (r < 0)
                 return r;