[SCM] Debian Live build scripts branch, master, updated. 1.0.0-2-36-g8bc2cec

Daniel Baumann daniel at debian.org
Thu Sep 11 07:23:21 UTC 2008


The following commit has been merged in the master branch:
commit 8bc2cec3de9c1cfab6967c9789941c39ebdb5df0
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Sep 11 09:22:45 2008 +0200

    Automatically enforcing fat32 on usb-hdd when detecting partitions bigger than 2GB.

diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index c122606..c93e225 100755
--- a/helpers/lh_binary_usb-hdd
+++ b/helpers/lh_binary_usb-hdd
@@ -98,6 +98,15 @@ then
 	export LH_BINARY_FILESYSTEM
 fi
 
+# Enforce fat32 if we have images in total bigger than 2GB
+if [ "${LH_BINARY_FILESYSTEM}" = "fat16" ] && [ "$(cd binary && du -s | awk '{ print $1 }')" -gt "1900000" ]
+then
+	Echo_warning "FAT16 doesn't support partitions larger than 2GB, automatically enforcing FAT32"
+
+	LH_BINARY_FILESYSTEM="fat32"
+	export LH_BINARY_FILESYSTEM
+fi
+
 # Everything which comes here needs to be cleaned up,
 DU_DIM="$(du -ms binary | cut -f1)"
 REAL_DIM="$(Calculate_partition_size ${DU_DIM} ${LH_BINARY_FILESYSTEM})"

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list