From 58ad2be9a71528f377fe2e66a80932d5498bd420 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Sun, 30 Dec 2012 14:17:53 +0100
Subject: [PATCH] Correcting glitch with plain chroot filesystems in
 binary_chroot.

---
 scripts/build/binary_chroot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/build/binary_chroot b/scripts/build/binary_chroot
index 598fff5fc..e98f6e979 100755
--- a/scripts/build/binary_chroot
+++ b/scripts/build/binary_chroot
@@ -85,7 +85,7 @@ ${LB_ROOT_COMMAND} rm -rf chroot/chroot
 ${LB_ROOT_COMMAND} rm -rf chroot.tmp
 
 # Copying new chroot
-if [ -d cache/bootstrap ] && [ "${LB_CHROOT_FILESYSTEM}" != "none" ]
+if [ -d cache/bootstrap ] && [ "${LB_CHROOT_FILESYSTEM}" != "none" ] && [ "${LB_CHROOT_FILESYSTEM}" != "plain" ]
 then
 	${LB_ROOT_COMMAND} mv chroot chroot.tmp
 	${LB_ROOT_COMMAND} cp -a cache/bootstrap chroot