On line 483 of /usr/share/lxc/templates/lxc-debian:
cp -a "${_CACHE}/${_DISTRIBUTION}_${_ARCHITECTURE}" "${_ROOTFS}" || return 1
There is a fundamental difference when using -B btrfs vs -B none.
With -B btrfs (or just having a btrfs root with no -B option) cp -a
will end up making a new archive directory:
${_ROOTFS}/${_DISTRIBUTION}_${_ARCHITECTURE}
eg: /var/lib/lxc/test0/rootfs/wheezy_amd64
When using -B none the directory does not exist and cp -a ends up
making the ${_ROOTFS} directory as a copy of the source directory:
${_ROOTFS}
eg: /var/lib/lxc/test0/rootfs/
This difference needs to be accommodated or btrfs needs to be
unsupported. In any case, a workaround is to use "-B none" if using
btrfs for a root filesystem. I haven't tested but I would imagine that
-B lvm behaves similarly to -B btrfs.
Also, I am using lxc version 0.8.0~rc1-8 from wheezy/sid.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]