Skip to content

Commit

Permalink
src/woeusb: chk_fat32_filesize_limitation: Improve error message
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed May 8, 2018
1 parent 2a410bf commit 952e2da
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/woeusb
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,13 @@ check_fat32_filesize_limitation(){
IFS=$'\n'
for file in ` find "${source_fs_mountpoint}" -type f `; do
if (( $(stat -c "%s" $file) > 4294967295 )); then # Max fat32 file size is 2^32 - 1 bytes
echo_with_color red "Error: File $file is larger than that supported by the fat32 filesystem. Use NTFS (--target-filesystem NTFS)."
printf_with_color\
red\
'Error: File "%s" in source image has exceed the FAT32 Filesystem 4GiB Single File Size Limitation and cannot be installed. You must specify a different --target-filesystem.\n'\
"${file}"
prntf_with_color\
red\
'Refer: https://github.com/slacka/WoeUSB/wiki/Limitations#fat32-filesystem-4gib-single-file-size-limitation for more info.\n'
IFS=$IFS_backup
unset IFS_backup
return 1
Expand Down

0 comments on commit 952e2da

Please sign in to comment.