Public bug reported: The -b flag in current Precise lxc-create sets up an fstab that has "$homedir $homedir none bind 0 0" instead of "$homedir /var/lib/lxc/$container/rootfs/$homedir none bind 0 0". This doesn't seem to work, which is a regression.
I created a container with this: $ sudo lxc-create -t ubuntu -n lptests -- -r lucid -a i386 -b gary This resulted in an fstab for that container that looked like this: $ cat /var/lib/lxc/lptests/fstab proc proc proc nodev,noexec,nosuid 0 0 sysfs sys sysfs defaults 0 0 /home/gary /home/gary none bind 0 0 I expected to see an fstab that looked like this older instance: $ cat /var/lib/lxc/lpdev/fstab proc /var/lib/lxc/lpdev/rootfs/proc proc nodev,noexec,nosuid 0 0 sysfs /var/lib/lxc/lpdev/rootfs/sys sysfs defaults 0 0 /home/gary /var/lib/lxc/lpdev/rootfs//home/gary none bind 0 0 Starting the new container gives me an empty home directory, rather than my bound home directory from the host. If I edit fstab as follows then the new container does give me a bound home directory from the host as I expect. $ cat /var/lib/lxc/lptests/fstab proc proc proc nodev,noexec,nosuid 0 0 sysfs sys sysfs defaults 0 0 /home/gary /var/lib/lxc/lptests/rootfs/home/gary none bind 0 0 ** Affects: lxc (Ubuntu) Importance: Undecided Status: New -- 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/968371 Title: lxc-create -b is broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/968371/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs