X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=9d5c2ef6a9293670c8e13d34df313a4029219c2e;hp=5ac0f5c84180808a787e26348e94e7ab52c858cb;hb=1fe44d6eb925578552821dd1c281ecb8e694dfe3;hpb=018de7b47ac1eaca9bf39e87f53836fbe4662ae3 diff --git a/grml2usb b/grml2usb index 5ac0f5c..9d5c2ef 100755 --- a/grml2usb +++ b/grml2usb @@ -113,6 +113,8 @@ parser.add_option("--skip-mbr", dest="skipmbr", action="store_true", help="do not install a master boot record (MBR) on the device") parser.add_option("--skip-syslinux-config", dest="skipsyslinuxconfig", action="store_true", help="skip generation of syslinux configuration files") +parser.add_option("--skip-usb-check", dest="skipusbcheck", action="store_true", + help="skip check to verify whether given device is removable") parser.add_option("--syslinux", dest="syslinux", action="callback", default=True, callback=syslinux_warning, help="install syslinux bootloader (deprecated as it's the default)") @@ -1665,6 +1667,10 @@ def handle_vfat(device): logging.critical("Execution failed: %s", error) sys.exit(1) + if options.skipusbcheck: + logging.info("Not checking for removable USB device as requested via option --skip-usb-check.") + return + if not os.path.isdir(device) and not check_for_usbdevice(device) and not options.force: print("Warning: the specified device %s does not look like a removable usb device." % device) f = raw_input("Do you really want to continue? y/N ")