systemctl: fix --root support in querying presets
We would always look on the host, ignoring --root.
This commit is contained in:
parent
4cb1015e6b
commit
c39b7821f6
|
@ -1478,7 +1478,7 @@ static int output_unit_file_list(const UnitFileList *units, unsigned c) {
|
|||
|
||||
id = basename(u->path);
|
||||
|
||||
r = unit_file_query_preset(arg_scope, NULL, id);
|
||||
r = unit_file_query_preset(arg_scope, arg_root, id);
|
||||
if (r < 0) {
|
||||
unit_preset_str = "n/a";
|
||||
on_preset_color = underline ? on_underline : ansi_normal();
|
||||
|
|
Loading…
Reference in a new issue