[lxc-users] Systemd as LXC 2.0 dependency ?

Harald Dunkel harald.dunkel at aixigo.de
Tue Apr 12 11:39:24 UTC 2016


Hi folks,

On 04/04/2016 05:50 PM, Serge Hallyn wrote:
> Quoting Milan Beneš (milan at benesovi.eu):
>> Hello,
>> does anybody know if systemd is a requirement for LXC 2.0?
> 
> Systemd is not required.  A name=systemd cgroup mount is.  You
> can create that trivially
> 
> sudo mkdir /sys/fs/cgroup/systemd
> sudo mount -t cgroup -o none,name=systemd /sys/fs/cgroup/systemd
> 

Should be "mkdir -p", AFAICT.

This is pretty painful. Obviously a simple entry in /etc/fstab
is not sufficient.

Would it be possible to add some "if test -d /sys/fs/cgroup/systemd"
to the code, bypassing the systemd support for native sysv init
on HA systems?


Thanx in advance
Harri



More information about the lxc-users mailing list