commit:     999971897395c0c92f6a46c417c968b37338efbf
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 27 06:45:36 2018 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Dec 27 06:45:36 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99997189

systemd.eclass: systemd_reenable: always pass a non-blank value to --root

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 eclass/systemd.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 9a5abfeac90..04f277e94d6 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
 }

Reply via email to