X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml2usb;h=63c26b37598958f301eed341a6efe1412626b52c;hb=5251ce1484272c48247551148a59dbd6bb13f6f1;hp=77e72ad99e3d5c3f85c52752529db3ea3d313bcc;hpb=752b503c46f24f8b1346af62ef11ecabc44f5dfc;p=grml2usb.git diff --git a/grml2usb b/grml2usb index 77e72ad..63c26b3 100755 --- a/grml2usb +++ b/grml2usb @@ -1109,7 +1109,8 @@ def identify_grml_flavour(mountpath): if not version_files: logging.critical("Error: could not find grml-version file.") - raise + cleanup() + sys.exit(1) flavours = [] logging.debug("version_files = %s", version_files) @@ -1459,7 +1460,7 @@ def install_grml(mountpoint, device): device_mountpoint = device if os.path.isdir(device): - logging.info("Specified device is not a directory, therefore not mounting.") + logging.info("Specified device is a directory, therefore not mounting.") remove_device_mountpoint = False else: device_mountpoint = tempfile.mkdtemp(prefix="grml2usb")