[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 b1790ab0ff9416aa3924cd204da31a3a664abbee
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Sep 11 09:16:58 2008 +0200

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

diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index 77be539..c122606 100755
--- a/helpers/lh_binary_usb-hdd
+++ b/helpers/lh_binary_usb-hdd
@@ -89,6 +89,15 @@ then
 	rm -f binary.img
 fi
 
+# Enforce fat32 if we find individual files bigger than 2GB
+if [ "${LH_BINARY_FILESYSTEM}" = "fat16" ] && [ -n "$(find binary -size +1999M)" ]
+then
+	Echo_warning "FAT16 doesn't support files 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