[Pkg-sysvinit-devel] Bug#740861: booting an lxc guest hangs at startpar unless .legacy-bootordering

chrysn chrysn at fsfe.org
Wed Mar 5 16:36:48 UTC 2014


Package: sysvinit-utils
Version: 2.88dsf-51
Severity: normal
File: /sbin/startpar

in a setup with a wheezy+backports lxc host and a jessie lxc guest,
booting a debootstrapped environment fails when the processes init (2x),
rc and startpar are running. strace shows that startpar is in a
`pselect6` system call from which it never returns.

if, as a workaround, i touch `etc/init.d/.legacy-bootordering` in the
container, everything boots up fine.

it's hard for me to pinpoint what is causing the bug, and even harder to
say what needs to be fixed, but as the only workaround i currently have
is in sysvinit's realm, i'm reporting it here.

my lxc config for reference (in practice, i'd place a
lxc.cgroup.devices.deny=a and other specific rules too, but for
debugging, i used this):

> lxc.utsname                             = prometheus-testcontainer.amsuess.com
> lxc.rootfs                              = /var/lib/lxc/testcontainer/rootfs
> lxc.arch                                = x86_64
> lxc.cgroup.cpu.shares                  = 1024
> lxc.cgroup.cpuset.cpus                 = 6
> lxc.cgroup.memory.limit_in_bytes       = 6G
> lxc.mount.entry                         = /dev/prometheus/testcontainer-root /var/lib/lxc/testcontainer/rootfs ext4 defaults 0 0
> lxc.mount.entry                         = proc /var/lib/lxc/testcontainer/rootfs/proc proc nodev,noexec,nosuid 0 0
> lxc.mount.entry                         = sysfs /var/lib/lxc/testcontainer/rootfs/sys sysfs defaults,ro 0 0

best regards
chrysn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20140305/1c984818/attachment.sig>


More information about the Pkg-sysvinit-devel mailing list