summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/systemd/systemd-242_rc2.ebuild3
-rw-r--r--sys-apps/systemd/systemd-9999.ebuild3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys-apps/systemd/systemd-242_rc2.ebuild b/sys-apps/systemd/systemd-242_rc2.ebuild
index 0be24409401..bbb07c49e43 100644
--- a/sys-apps/systemd/systemd-242_rc2.ebuild
+++ b/sys-apps/systemd/systemd-242_rc2.ebuild
@@ -393,7 +393,8 @@ migrate_locale() {
}
save_enabled_units() {
- [[ -z ${ROOT} ]] || return
+ ENABLED_UNITS=()
+ type systemctl &>/dev/null || return
for x; do
if systemctl --quiet --root="${ROOT:-/}" is-enabled "${x}"; then
ENABLED_UNITS+=( "${x}" )
diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild
index 0be24409401..bbb07c49e43 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -393,7 +393,8 @@ migrate_locale() {
}
save_enabled_units() {
- [[ -z ${ROOT} ]] || return
+ ENABLED_UNITS=()
+ type systemctl &>/dev/null || return
for x; do
if systemctl --quiet --root="${ROOT:-/}" is-enabled "${x}"; then
ENABLED_UNITS+=( "${x}" )