:: [DNG] LXC template for Devuan
Top Page
Delete this message
Reply to this message
Author: Simon Walter
Date:  
To: dng@lists.dyne.org
Subject: [DNG] LXC template for Devuan
Hi all,

I am wondering if it is a good idea to submit a modified version of the
debian template to the upstream LXC project.

I am not sure who wrote those scripts. It seems like that is part of LXC
source. So I am guessing it has nothing to do with the Debian LXC
package maintainer.

Also, I wouldn't want to submit something for Devaun to LXC without at
least one other LXC + Devaun user taking a look at it and kicking the tires.

Or maybe someone has already modified the debian template for Devuan.

Checking (/usr/share/lxc/templates/lxc-debian), it looks like sysvinit 
is in use:
     # configure the inittab
     cat <<EOF > $rootfs/etc/inittab
id:3:initdefault:
si::sysinit:/etc/init.d/rcS
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin
1:2345:respawn:/sbin/getty 38400 console
c1:12345:respawn:/sbin/getty 38400 tty1 linux
c2:12345:respawn:/sbin/getty 38400 tty2 linux
c3:12345:respawn:/sbin/getty 38400 tty3 linux
c4:12345:respawn:/sbin/getty 38400 tty4 linux
p6::ctrlaltdel:/sbin/init 6
p0::powerfail:/sbin/init 0
EOF


Hence there is a bug about LXC containers not working with systemd yet.

So maybe this is a good base and just the MIRROR needs changing.

Kind regards,

Simon