diff options
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r-- | eclass/systemd.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index 9a5abfeac900..04f277e94d64 100644 --- a/eclass/systemd.eclass +++ b/eclass/systemd.eclass @@ -468,8 +468,8 @@ systemd_reenable() { type systemctl &>/dev/null || return 0 local x for x; do - if systemctl --quiet --root="${ROOT}" is-enabled "${x}"; then - systemctl --root="${ROOT}" reenable "${x}" + if systemctl --quiet --root="${ROOT:-/}" is-enabled "${x}"; then + systemctl --root="${ROOT:-/}" reenable "${x}" fi done } |