diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-04-28 15:07:21 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-05-01 09:04:07 -0500 |
commit | c709e6077c6eda3f4f7e7222298213413254ee0f (patch) | |
tree | 3cf552342888f64b12a41fc462c0715f3012fd2a /sh | |
parent | a27d577da8cf4f1c7f9784a043ecf02d71a81ca6 (diff) |
Add support for systemd-nspawn containers
This adds support for running OpenRC in a container created by
the systemd-nspawn utility.
This fixes #52.
X-Gentoo-Bug: 548058
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548058
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 |