Daniel, are you suggesting that the fix is to untar the upstream tar file over the top of the dpkg installed files? From a system management and stability point of view I find this option undesirable.

Anyway here is a unified diff that fixes the problem with the LVM backing store and still works with the default backing store. I haven't tested other backing stores but their behaviour should be unchanged.

I'd consider it highly desirable to get this patch in the Debian package so that LXC isn't broken with an LVM backing store.

--- lxc-debian-wheezy   2013-07-21 01:49:25.518395282 +1000
+++ /usr/share/lxc/templates/lxc-debian-wheezy 2013-07-21 11:56:48.479221496 +1000
@@ -124,8 +124,16 @@
     rootfs=$3

     # make a local copy of the minidebian
+       # We need to behave differently if $rootfs exists and is a
+       # directory, as happens when we use LVM as a backing store.
     echo -n "Copying rootfs to $rootfs..."
-    cp -a $cache/rootfs-$arch $rootfs || return 1
+       if [ -d $rootfs ]
+       then
+       cp -a $cache/rootfs-$arch/* $rootfs || return 1
+       else
+       cp -a $cache/rootfs-$arch $rootfs || return 1
+       fi
+
     return 0
 }


--
Email: rob...@timetraveller.org         Linux counter ID #16440
IRC: Solver (OFTC & Freenode)
Web: http://www.pracops.com
Director, Software in the Public Interest (http://spi-inc.org/)
Information is a gas


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to