diff options
author | Mike Gilbert <floppym@gentoo.org> | 2018-12-27 01:45:36 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-12-27 01:45:36 -0500 |
commit | 999971897395c0c92f6a46c417c968b37338efbf (patch) | |
tree | de4e1b4b60662150c52eea0701aa64c286ce627b /eclass/systemd.eclass | |
parent | sys-apps/systemd: reexec in pkg_postinst (diff) | |
download | gentoo-999971897395c0c92f6a46c417c968b37338efbf.tar.gz gentoo-999971897395c0c92f6a46c417c968b37338efbf.tar.bz2 gentoo-999971897395c0c92f6a46c417c968b37338efbf.zip |
systemd.eclass: systemd_reenable: always pass a non-blank value to --root
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
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 } |