~alpine/users

lxd systemd cgroups on boot?

Daniel Gray <dng@disroot.org>
Details
Message ID
<20200516151337.sx6rdckvxkubilcc@disroot.org>
DKIM signature
missing
Download raw message
Hi,

I was having some trouble with my lxc containers starting, when the
distribution was one that used systemd, (debian, archlinux etc).

Seems the solution is here:

https://wiki.gentoo.org/wiki/LXD#Running_systemd_based_containers_on_OpenRC_hosts

# mkdir -p /sys/fs/cgroup/systemd
# mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd

Running these commands allows my containers to start.

However, I'd like a more permanent solution as I use Alpine Linux in
diskless-mode.

I've added the groups service to default runlevel so it starts on boot:

# rc-update add cgroups
# rc-service cgroups start

I don't think putting the above mount point in fstab will work for
cgroups as they're started by the groups service. Any suggestions?

-- 
Daniel Gray (dng) 0x41911F722B0F9AE3
Reply to thread Export thread (mbox)