sshd template is broken
Bug #838410 reported by
Serge Hallyn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The sshd template works in part by bind-mounting the template itself into the container as /sbin/init.
On ubuntu, the template is in /usr/lib/
On ubuntu, the container's rootfs gets set up under /usr/lib/lxc.
So we overmount the template before we try to bind mount it, resulting in -ENOENT on mount.
Related branches
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
This bug was fixed in the package lxc - 0.7.5-0ubuntu6
---------------
lxc (0.7.5-0ubuntu6) oneiric; urgency=low
* debian/rules: use --with- rootfs- path=/usr/ lib/lxc/ root. (LP: #838410) template. patch: lxc-sshd. in: add /run/shm to list of directories to create.
* debian/lxc.dirs: add usr/lib/lxc/root
* fix-sshd-
- templates/
Technically /dev/shm needn't be there, as the config will overmount with
the host's /dev.
- Don't fail if we can't create /dev/mqueue. It'll fail anyway (because
/dev is mounted read-only), and we don't really need it. Without this
fix, lxc-init fails to run on ubuntu systems, as the host doesn't have
/dev/mqueue.
-- Serge Hallyn <email address hidden> Thu, 01 Sep 2011 16:01:31 +0000