X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=d63d60a35786d4bfe690549fa9c2c7c1ed69d241;hp=217020dedcf6bdc6b8c72dd63a3003c008d7ab96;hb=19b2fe785e5357247588698b1fd9f432f3c89c0d;hpb=5d028a0bf6d7dd63f8e897013f7530185ea6a85c 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)