From c5b22a8b92c80e00494b1372cde1281b34c301e4 Mon Sep 17 00:00:00 2001
From: Oliver Grawert <ogra@ubuntu.com>
Date: Mon, 19 Nov 2012 23:13:11 +0100
Subject: [PATCH] move the nexus rootfs tarball around instead of copying it

---
 debian/changelog      | 3 ++-
 live-build/auto/build | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4a8ee686..fecea32a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
 livecd-rootfs (2.100) UNRELEASED; urgency=low
 
   * clean up the userdata dir
+  * move the tarball around instead of copying it
 
- -- Oliver Grawert <ogra@chromebook>  Mon, 19 Nov 2012 19:48:42 +0100
+ -- Oliver Grawert <ogra@ubuntu.com>  Mon, 19 Nov 2012 19:48:42 +0100
 
 livecd-rootfs (2.99) raring; urgency=low
 
diff --git a/live-build/auto/build b/live-build/auto/build
index e9187b66..bf5598c5 100755
--- a/live-build/auto/build
+++ b/live-build/auto/build
@@ -382,8 +382,9 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then
 
 		# roll the android rootfs images
 		mkdir -p userdata
-		cp $PREFIX.rootfs.tar.gz userdata/rootfs.tar.gz
+		mv $PREFIX.rootfs.tar.gz userdata/rootfs.tar.gz
 		make_ext4fs -l 6G -s $PREFIX.img-$FLAVOUR userdata/
+		mv userdata/rootfs.tar.gz $PREFIX.rootfs.tar.gz
 		ln -sf "$PREFIX.img-$FLAVOUR" "$PREFIX.img"
 	fi