diff options
Diffstat (limited to 'sh')
-rw-r--r-- | sh/openrc-run.sh.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in index a6d2c0b8..e279f116 100644 --- a/sh/openrc-run.sh.in +++ b/sh/openrc-run.sh.in @@ -34,7 +34,10 @@ sourcex() sourcex "@LIBEXECDIR@/sh/functions.sh" sourcex "@LIBEXECDIR@/sh/rc-functions.sh" -[ "$RC_SYS" != "PREFIX" ] && sourcex -e "@LIBEXECDIR@/sh/rc-cgroup.sh" +case $RC_SYS in + PREFIX|SYSTEMD-NSPAWN) ;; + *) sourcex -e "@LIBEXECDIR@/sh/rc-cgroup.sh";; +esac # Support LiveCD foo if sourcex -e "/sbin/livecd-functions.sh"; then |