Merge remote branch 'origin/master'
authorUlrich Dangel <uli@spamt.net>
Wed, 4 Nov 2009 10:06:57 +0000 (11:06 +0100)
committerUlrich Dangel <uli@spamt.net>
Wed, 4 Nov 2009 10:06:57 +0000 (11:06 +0100)
grml2usb

index a09b97f..05d3b38 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -1220,6 +1220,8 @@ def install_iso_files(grml_flavour, iso_mount, device, target):
     # * catch "install: .. No space left on device" & CO
 
     if options.dryrun:
+        global GRML_DEFAULT
+        GRML_DEFAULT = grml_flavour
         return 0
     elif not options.bootloaderonly:
         logging.info("Copying files. This might take a while....")
@@ -1892,6 +1894,10 @@ def main():
     if options.dryrun:
         logging.info("Running in simulation mode as requested via option dry-run.")
 
+    if options.grubmbr and not options.grub:
+        logging.critical("Error: --grub-mbr requires --grub option.")
+        sys.exit(1)
+
     # specified arguments
     device = args[len(args) - 1]
     isos = args[0:len(args) - 1]