X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml2usb;h=1155a4a75a5bc49cf1011afbebc4fabd61951c8b;hb=08a7f928b0aa4337799f9e50faf97ecb26997be8;hp=bde7244d307ae727924844a9cfde58e321d20d12;hpb=23a0b09ff4c5d889643fcb216f6acc65a0dc50db;p=grml2usb.git diff --git a/grml2usb b/grml2usb index bde7244..1155a4a 100755 --- a/grml2usb +++ b/grml2usb @@ -26,8 +26,8 @@ MOUNTED = set() # register mountpoints TMPFILES = set() # register tmpfiles DATESTAMP = time.mktime(datetime.datetime.now().timetuple()) # unique identifier for syslinux.cfg GRML_FLAVOURS = set() # which flavours are being installed? -global GRML_DEFAULT -global UUID +GRML_DEFAULT = None +UUID = None def syslinux_warning(option, opt, value, parser): sys.stderr.write("Note: the --syslinux option is deprecated as syslinux " + @@ -1252,9 +1252,9 @@ def install_iso_files(grml_flavour, iso_mount, device, target): # * provide alternative search_file() if file information is stored in a config.ini file? # * catch "install: .. No space left on device" & CO + global GRML_DEFAULT + GRML_DEFAULT = grml_flavour 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....")