projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed1c7de
)
systemd.eclass: systemd_reenable: always pass a non-blank value to --root
author
Mike Gilbert
<floppym@gentoo.org>
Thu, 27 Dec 2018 06:45:36 +0000
(
01:45
-0500)
committer
Mike Gilbert
<floppym@gentoo.org>
Thu, 27 Dec 2018 06:45:36 +0000
(
01:45
-0500)
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/systemd.eclass
patch
|
blob
|
history
diff --git
a/eclass/systemd.eclass
b/eclass/systemd.eclass
index 9a5abfeac90087e8242d9cdfc1eb4ae6c2921db5..04f277e94d64f06f43cd9cb7dc093180e8c3fce4 100644
(file)
--- 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
}