import uuid
# global variables
-PROG_VERSION = "0.9.20"
+PROG_VERSION = "0.9.23"
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 " +
# * 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....")
logging.critical("Execution failed: %s", error)
sys.exit(1)
- if not os.path.isdir(device) and not check_for_usbdevice(device):
+ if not os.path.isdir(device) and not check_for_usbdevice(device) and not option.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 ")
if f == "y" or f == "Y":