From: Ulrich Dangel Date: Tue, 10 Nov 2009 09:37:02 +0000 (+0100) Subject: check_for_fat always check for fat device. X-Git-Tag: v0.9.19~5 X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=0dfd495fa4d5287f3f71858150f5279c6783c1d1;ds=sidebyside check_for_fat always check for fat device. --- 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)