-parser.add_option("--bootoptions", dest="bootoptions",
- action="append", type="string",
- help="use specified bootoptions as default")
-parser.add_option("--bootloader-only", dest="bootloaderonly", action="store_true",
- help="do not copy files but just install a bootloader")
-parser.add_option("--copy-only", dest="copyonly", action="store_true",
- help="copy files only but do not install bootloader")
-parser.add_option("--dry-run", dest="dryrun", action="store_true",
- help="avoid executing commands")
-parser.add_option("--fat16", dest="fat16", action="store_true",
- help="format specified partition with FAT16")
-parser.add_option("--force", dest="force", action="store_true",
- help="force any actions requiring manual interaction")
-parser.add_option("--grub", dest="grub", action="callback",
- callback=grub_option,
- help="install grub bootloader instead of (default) syslinux")
-parser.add_option("--grub-mbr", dest="grubmbr", action="store_true",
- help="install grub into MBR instead of (default) PBR")
-parser.add_option("--mbr-menu", dest="mbrmenu", action="store_true",
- help="enable interactive boot menu in MBR")
-parser.add_option("--quiet", dest="quiet", action="store_true",
- help="do not output anything but just errors on console")
-parser.add_option("--remove-bootoption", dest="removeoption", action="append",
- help="regex for removing existing bootoptions")
-parser.add_option("--skip-addons", dest="skipaddons", action="store_true",
- help="do not install /boot/addons/ files")
-parser.add_option("--skip-bootflag", dest="skipbootflag", action="store_true",
- help="do not try to check whether the destination has the bootflag set")
-parser.add_option("--skip-usb-check", dest="skipusbcheck", action="store_true",
- help="skip check to verify whether given device is removable")
-parser.add_option("--skip-grub-config", dest="skipgrubconfig", action="store_true",
- help="skip generation of grub configuration files")
-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("--syslinux", dest="syslinux", action="callback", default=True,
- callback=syslinux_warning,
- help="install syslinux bootloader (deprecated as it's the default)")
-parser.add_option("--syslinux-mbr", dest="syslinuxmbr", action="store_true",
- help="install syslinux master boot record (MBR) instead of default")
-parser.add_option("--tmpdir", dest="tmpdir", default="/tmp",
- help="directory to be used for temporary files")
-parser.add_option("--verbose", dest="verbose", action="store_true",
- help="enable verbose mode")
-parser.add_option("-v", "--version", dest="version", action="store_true",
- help="display version and exit")
+parser.add_option(
+ "--bootoptions",
+ dest="bootoptions",
+ action="append",
+ type="string",
+ help="use specified bootoptions as default",
+)
+parser.add_option(
+ "--bootloader-only",
+ dest="bootloaderonly",
+ action="store_true",
+ help="do not copy files but just install a bootloader",
+)
+parser.add_option(
+ "--copy-only",
+ dest="copyonly",
+ action="store_true",
+ help="copy files only but do not install bootloader",
+)
+parser.add_option(
+ "--dry-run", dest="dryrun", action="store_true", help="avoid executing commands"
+)
+parser.add_option(
+ "--fat16",
+ dest="fat16",
+ action="store_true",
+ help="format specified partition with FAT16",
+)
+parser.add_option(
+ "--force",
+ dest="force",
+ action="store_true",
+ help="force any actions requiring manual interaction",
+)
+parser.add_option(
+ "--grub",
+ dest="grub",
+ action="callback",
+ callback=grub_option,
+ help="install grub bootloader instead of (default) syslinux",
+)
+parser.add_option(
+ "--grub-mbr",
+ dest="grubmbr",
+ action="store_true",
+ help="install grub into MBR instead of (default) PBR",
+)
+parser.add_option(
+ "--mbr-menu",
+ dest="mbrmenu",
+ action="store_true",
+ help="enable interactive boot menu in MBR",
+)
+parser.add_option(
+ "--quiet",
+ dest="quiet",
+ action="store_true",
+ help="do not output anything but just errors on console",
+)
+parser.add_option(
+ "--remove-bootoption",
+ dest="removeoption",
+ action="append",
+ help="regex for removing existing bootoptions",
+)
+parser.add_option(
+ "--rw-blockdev",
+ dest="rwblockdev",
+ action="store_true",
+ help="enforce read-write mode on involved block devices",
+)
+parser.add_option(
+ "--skip-addons",
+ dest="skipaddons",
+ action="store_true",
+ help="do not install /boot/addons/ files",
+)
+parser.add_option(
+ "--skip-bootflag",
+ dest="skipbootflag",
+ action="store_true",
+ help="do not try to check whether the destination has the boot flag set",
+)
+parser.add_option(
+ "--skip-grub-config",
+ dest="skipgrubconfig",
+ action="store_true",
+ help="skip generation of grub configuration files",
+)
+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)",
+)
+parser.add_option(
+ "--syslinux-mbr",
+ dest="syslinuxmbr",
+ action="store_true",
+ help="install syslinux master boot record (MBR) instead of default",
+)
+parser.add_option(
+ "--syslinux-libs",
+ dest="syslinuxlibs",
+ action="append",
+ default=[],
+ help="syslinux modules directory path",
+)
+parser.add_option(
+ "--tmpdir",
+ dest="tmpdir",
+ default="/tmp",
+ help="directory to be used for temporary files",
+)
+parser.add_option(
+ "--verbose", dest="verbose", action="store_true", help="enable verbose mode"
+)
+parser.add_option(
+ "-v",
+ "--version",
+ dest="version",
+ action="store_true",
+ help="display version and exit",
+)