From 5eb15d86676bc0587b7ce80c1e29e69ebebaf9c7 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 5 Jun 2013 21:16:28 -0300 Subject: [PATCH] Get rid of rootfs removal on lxc-templates I'm not even sure why I added this but removing it fixes #81 --- CHANGELOG.md | 1 + boxes/debian/lxc-template | 2 -- boxes/ubuntu/lxc-template | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e01d723..9f159fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [0.?.?](https://github.com/fgrehm/vagrant-lxc/compare/v0.3.4...master) (unreleased) + - BTRFS-friendly base boxes [#81](https://github.com/fgrehm/vagrant-lxc/issues/81) - Extended templates path lookup [#77](https://github.com/fgrehm/vagrant-lxc/issues/77) (tks to @aries1980) - Fix default group on the rake task [#82](https://github.com/fgrehm/vagrant-lxc/issues/82) (tks to @cduez) diff --git a/boxes/debian/lxc-template b/boxes/debian/lxc-template index e007f52..1a9d145 100755 --- a/boxes/debian/lxc-template +++ b/boxes/debian/lxc-template @@ -117,8 +117,6 @@ extract_rootfs() echo "Extracting $tarball ..." mkdir -p $(dirname $rootfs) - # Make sure the rootfs does not exist before extracting - rm -rf $rootfs (cd `dirname $rootfs` && tar xfz $tarball) return 0 } diff --git a/boxes/ubuntu/lxc-template b/boxes/ubuntu/lxc-template index c56b290..58724f4 100755 --- a/boxes/ubuntu/lxc-template +++ b/boxes/ubuntu/lxc-template @@ -165,8 +165,6 @@ extract_rootfs() echo "Extracting $tarball ..." mkdir -p $(dirname $rootfs) - # Make sure the rootfs does not exist before extracting - rm -rf $rootfs (cd `dirname $rootfs` && tar xfz $tarball) return 0 }