diff options
author | Daniel Baumann <daniel@debian.org> | 2008-09-11 09:16:58 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:41 +0100 |
commit | 759d82a2c44f4dbf2acd9b046ac944812f4e361e (patch) | |
tree | abbf0c60eddbe464fa0db25b7320715bfeb808a3 /helpers | |
parent | dbb7a3d45914e777507a1087c3644ed72a46d527 (diff) | |
download | live-build-759d82a2c44f4dbf2acd9b046ac944812f4e361e.zip live-build-759d82a2c44f4dbf2acd9b046ac944812f4e361e.tar.gz |
Automatically enforcing fat32 on usb-hdd when detecting files bigger than 2GB.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_binary_usb-hdd | 9 |
1 files changed, 9 insertions, 0 deletions
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})" |