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

Reply via email to