X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=462baf4246370b34c1f7ec6c7300a7a189cd5bc6;hp=6f9eec9cb69e204a7e42876f20a830dbb2cc50a9;hb=0dfd495fa4d5287f3f71858150f5279c6783c1d1;hpb=6ba9f5e7e886583ece72a5eb13ab48af1a6e8b22 diff --git a/grml2usb b/grml2usb index 6f9eec9..462baf4 100755 --- a/grml2usb +++ b/grml2usb @@ -945,7 +945,7 @@ def check_for_fat(partition): raise CriticalException("Failed to read device %s" " (wrong UID/permissions or device/directory not present?)" % partition) - if options.syslinux and filesystem != "vfat": + if filesystem != "vfat": raise CriticalException("Partition %s does not contain a FAT16 filesystem. (Use --fat16 or run mkfs.vfat %s)" % (partition, partition)) except OSError: @@ -1810,7 +1810,7 @@ def handle_vfat(device): # check for vfat filesystem if device is not None and not os.path.isdir(device): try: - check_for_fat(device) + if options.syslinux: check_for_fat(device) except CriticalException, error: logging.critical("Execution failed: %s", error) sys.exit(1)