diff options
author | Joonas Niilola <juippis@gentoo.org> | 2020-10-21 09:03:53 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-10-21 09:03:53 +0300 |
commit | 4b4cbd6f7c78abe9d831c8425b2a4ebdbba298ca (patch) | |
tree | cdf33e0f650bde9a1395d6109611d41750a9e8c8 /app-emulation/lxd/files | |
parent | media-gfx/gimp: 2.10.22 fix mypaint-brushes dependency (diff) | |
download | gentoo-4b4cbd6f7c78abe9d831c8425b2a4ebdbba298ca.tar.gz gentoo-4b4cbd6f7c78abe9d831c8425b2a4ebdbba298ca.tar.bz2 gentoo-4b4cbd6f7c78abe9d831c8425b2a4ebdbba298ca.zip |
app-emulation/lxd: fix init.d to allow systemd cont on openrc host
Closes: https://bugs.gentoo.org/750410
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-emulation/lxd/files')
-rw-r--r-- | app-emulation/lxd/files/lxd-4.0.0.initd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app-emulation/lxd/files/lxd-4.0.0.initd b/app-emulation/lxd/files/lxd-4.0.0.initd index 03ec12e44f56..f4206344355a 100644 --- a/app-emulation/lxd/files/lxd-4.0.0.initd +++ b/app-emulation/lxd/files/lxd-4.0.0.initd @@ -18,6 +18,9 @@ start() { modprobe -f loop > /dev/null 2>&1 + # Allow systemd containers to be used on openrc host, #750410 + [ -d /sys/fs/cgroup/systemd ] || ( mkdir -p /sys/fs/cgroup/systemd ; mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd ) + # fix permissions on /var/lib/lxd and make sure it exists install -d /var/lib/lxd --group lxd --owner root --mode 0775 start-stop-daemon --start \ |