[Bug 968371] Re: lxc-create -b is broken

2012-03-29 Thread Serge Hallyn
Ah, I see.  It's because $homedir is an absolute path.

This will be a problem for regular containers as well.

The problem is that lxc takes an absolute path to mean that the path
should be prefixed by the rootfs location.  It's ok for directory backed
containers as it accepts the source mount of the rootfs.  But for lvm
backed containers, /var/lib/lxc/$container/rootfs is *not* accepted as
valid.

We can fix this firstly by removing the leading '/' from the second
field in the fstab entry.  That will do the right thing.

We can also still update lxc to accept /var/lib/lxc/$container/rootfs
regardless of whether that has anything to do with its rootfs, and go
back to the old style fstab entries.

** Changed in: lxc (Ubuntu)
   Status: New = Confirmed

** Changed in: lxc (Ubuntu)
   Importance: Undecided = High

-- 
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


[Bug 968371] Re: lxc-create -b is broken

2012-03-29 Thread Serge Hallyn
To be clear, the workaround I recomment for now is to update lxc-start-
ephemeral locally to remove the leading '/' from the second field, so
that the fstab looks like:

/home/gary home/gary none bind 0 0

-- 
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


[Bug 968371] Re: lxc-create -b is broken

2012-03-29 Thread Launchpad Bug Tracker
This bug was fixed in the package lxc - 0.7.5-3ubuntu47

---
lxc (0.7.5-3ubuntu47) precise; urgency=low

  * 0065-fix-bindhome-relpath: use relative path as target for bind mount
in lxc-ubuntu template (LP: #968371)
 -- Serge Hallyn serge.hal...@ubuntu.com   Thu, 29 Mar 2012 22:04:30 +

** Changed in: lxc (Ubuntu)
   Status: Confirmed = Fix Released

-- 
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