Check for FAT16 only when using --syslinux
authorMichael Prokop <mika@grml.org>
Mon, 2 Mar 2009 14:59:06 +0000 (15:59 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 2 Mar 2009 14:59:06 +0000 (15:59 +0100)
grml2usb

index 3bcaee8..cdeaa03 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -881,7 +881,7 @@ def check_for_fat(partition):
             raise CriticalException("Failed to read device %s"
                                     " (wrong UID/permissions or device not present?)" % partition)
 
-        if filesystem != "vfat":
+        if options.syslinux and filesystem != "vfat":
             raise CriticalException("Partition %s does not contain a FAT16 filesystem. (Use --fat16 or run mkfs.vfat %s)" % (partition, partition))
 
     except OSError: