From 2a75e5b712d7b9ed4d6680a59e0dcdfa335bc8f5 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Fri, 19 Oct 2007 18:28:35 +0200
Subject: Setting default union filesystem to for etch to unionfs.

---
 functions/defaults.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/functions/defaults.sh b/functions/defaults.sh
index bfc2694..715e568 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -299,7 +299,15 @@ Set_defaults ()
 	LH_CHROOT_FILESYSTEM="${LH_CHROOT_FILESYSTEM:-squashfs}"
 
 	# Setting union filesystem
-	LH_UNION_FILESYSTEM="${LH_UNION_FILESYSTEM:-aufs}"
+	if [ -z "${LH_UNION_FILESYSTEM}" ]
+	then
+		if [ "${LH_DISTRIBUTION}" = "etch" ]
+		then
+			LH_UNION_FILESYSTEM="unionfs"
+		else
+			LH_UNION_FILESYSTEM="aufs"
+		fi
+	fi
 
 	# LH_HOOKS
 
-- 
cgit v1.0