summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-10-19 18:28:35 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:28 +0100
commit2a75e5b712d7b9ed4d6680a59e0dcdfa335bc8f5 (patch)
tree0cdccbe53bc08dd7cb4b5df3a498ae3503b58dfd /functions/defaults.sh
parentb42ba836881e6fb6949dbdfa76aa9e6c1f89a031 (diff)
downloadvyos-live-build-2a75e5b712d7b9ed4d6680a59e0dcdfa335bc8f5.tar.gz
vyos-live-build-2a75e5b712d7b9ed4d6680a59e0dcdfa335bc8f5.zip
Setting default union filesystem to for etch to unionfs.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-xfunctions/defaults.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index bfc2694c5..715e568ae 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