Package: lxc
Version: 0.8.0~rc1-4~bpo60+1
Severity: wishlist

When generating a new container with debian-debconf-template the config
includes:
lxc.mount.entry                         = proc /var/lib/lxc/CN/rootfs/proc proc
nodev,noexec,nosuid 0 0
lxc.mount.entry                         = sysfs /var/lib/lxc/CN/rootfs/sys
sysfs defaults,ro 0 0

This won't work out of the box if the container's rootfs is copied to a single
file image (myrootfs.ext3).
As Serge Hallyn proposed on the lxc-devel list, relative paths should be used
in the templates.

I switched the above to
lxc.mount.entry                         = proc proc proc nodev,noexec,nosuid 0
0
lxc.mount.entry                         = sysfs sys sysfs defaults,ro 0 0
and it worked for both variants - plain rootfs in host's fs AND rootfs on
blockdev like a file image (lxc-0.8.0 from squeeze-backports).



-- System Information:
Debian Release: 6.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.2-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lxc depends on:
ii  debconf [debconf-2.0]         1.5.36.1   Debian configuration management sy
ii  libc6                         2.11.3-3   Embedded GNU C Library: Shared lib
ii  libcap2                       1:2.19-3   support for getting/setting POSIX.

Versions of packages lxc recommends:
ii  debootstrap              1.0.26+squeeze1 Bootstrap a basic Debian system
ii  libcap2-bin              1:2.19-3        basic utility programs for using c

Versions of packages lxc suggests:
pn  lxctl                         <none>     (no description available)

-- debconf information:
  lxc/shutdown: stop
  lxc/directory: /var/lib/lxc
  lxc/title:
  lxc/auto: true


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to