From b8f1f89c377b12346dcbeb158f73319d1c461435 Mon Sep 17 00:00:00 2001
From: Ian Reinhart Geiser <geiseri@yahoo.com>
Date: Sun, 29 Apr 2012 12:57:08 -0400
Subject: [PATCH 2/4] Fix to allow for multiple rof when exposed roots is disabled
Cc: igeiser@devonit.com

---
 scripts/live |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/scripts/live b/scripts/live
index dd24ecd..491bcbb 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1113,15 +1113,15 @@ setup_unionfs ()
 
 	rofscount=$(echo ${rofslist} |wc -w)
 
-	# XXX: we now ensure that there can only be one read-only filesystem. Should this be inside the EXPOSED_ROOT if?
-	if [ ${rofscount} -ne 1 ]
-	then
-		panic "only one RO file system supported with exposedroot: ${rofslist}"
-	fi
 	rofs=${rofslist%% }
 
 	if [ -n "${EXPOSED_ROOT}" ]
 	then
+		if [ ${rofscount} -ne 1 ]
+		then
+			panic "only one RO file system supported with exposedroot: ${rofslist}"
+		fi
+
 		mount --bind ${rofs} ${rootmnt} || \
 			panic "bind mount of ${rofs} failed"
 
-- 
1.7.0.4

