From 6d215be0e7cf165c6fe14d265e7dfdc66dccbc05 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Tue, 22 Dec 2009 22:20:58 +0100
Subject: Correcting handling of precached chroot when using plain chroot
 filesystem.

---
 helpers/lh_binary_chroot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helpers/lh_binary_chroot b/helpers/lh_binary_chroot
index 7612810..c65b7b5 100755
--- a/helpers/lh_binary_chroot
+++ b/helpers/lh_binary_chroot
@@ -84,7 +84,7 @@ ${LH_ROOT_COMMAND} rm -rf chroot/chroot
 ${LH_ROOT_COMMAND} rm -rf chroot.tmp
 
 # Copying new chroot
-if [ -d cache/stages_bootstrap ]
+if [ -d cache/stages_bootstrap ] && [ "${LH_CHROOT_FILESYSTEM}" != "plain" ]
 then
 	${LH_ROOT_COMMAND} mv chroot chroot.tmp
 	${LH_ROOT_COMMAND} cp -a cache/stages_bootstrap chroot
-- 
cgit v1.0