From: Christian Hofstaedtler Date: Sat, 23 Jul 2011 20:05:32 +0000 (+0200) Subject: Support USB keys with superfloppy format X-Git-Tag: v0.9.35~14 X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=19b2fe785e5357247588698b1fd9f432f3c89c0d;ds=sidebyside Support USB keys with superfloppy format --- diff --git a/grml2usb b/grml2usb index 217020d..d63d60a 100755 --- a/grml2usb +++ b/grml2usb @@ -1980,10 +1980,6 @@ def main(): if int(device[-1:]) > 4 or device[-2:].isdigit(): logging.critical("Fatal: installation on partition number >4 not supported. (BIOS won't support it.)") sys.exit(1) - elif os.path.exists(device): - logging.critical("Fatal: installation on raw device not supported. (BIOS won't support it.)") - sys.exit(1) - # provide upgrade path handle_compat_warning(device) @@ -1996,7 +1992,11 @@ def main(): install(iso, device) # install mbr - if not options.skipmbr and not os.path.isdir(device): + is_superfloppy = not device[-1:].isdigit() + if is_superfloppy: + logging.info("Detected superfloppy format - not installing MBR") + + if not options.skipmbr and not os.path.isdir(device) and not is_superfloppy: handle_mbr(device) handle_bootloader(device)