[Bug 960860] [NEW] fstab doesn't work for lvm based containers

Serge Hallyn 960860 at bugs.launchpad.net
Wed Mar 21 05:07:59 UTC 2012


Public bug reported:

The entries in /var/lib/lxc/<container>/fstab are always created
relative to a full path, i.e.

proc            /var/lib/lxc/p1/rootfs/proc         proc
nodev,noexec,nosuid 0 0

A check is made in src/lxc/conf.c:mount_entry_on_absolute_rootfs() that
the path starts with the containers rootfs path - but that path is a
block device for lvm containers.

The simplest solution is to have our templates create the entries with
relative pathnames (relative to the container's '/') in the form:

proc proc proc nodev,noexec,nosuid 0 0

** Affects: lxc (Ubuntu)
     Importance: High
         Status: Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/960860

Title:
  fstab doesn't work for lvm based containers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/960860/+subscriptions



More information about the Ubuntu-server-bugs mailing list