summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2018-12-27 01:45:36 -0500
committerMike Gilbert <floppym@gentoo.org>2018-12-27 01:45:36 -0500
commit999971897395c0c92f6a46c417c968b37338efbf (patch)
treede4e1b4b60662150c52eea0701aa64c286ce627b /eclass/systemd.eclass
parentsys-apps/systemd: reexec in pkg_postinst (diff)
downloadgentoo-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.eclass4
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
}