X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=68565db77718e9162725c120100a68ff32db3907;hp=77e72ad99e3d5c3f85c52752529db3ea3d313bcc;hb=cf525c6031463d42ed8c7f9b84d83e3b2c36f600;hpb=752b503c46f24f8b1346af62ef11ecabc44f5dfc diff --git a/grml2usb b/grml2usb index 77e72ad..68565db 100755 --- a/grml2usb +++ b/grml2usb @@ -1108,8 +1108,16 @@ def identify_grml_flavour(mountpath): version_files = search_file('grml-version', mountpath, lst_return=True) if not version_files: - logging.critical("Error: could not find grml-version file.") - raise + if mountpath.startswith("/live/image"): + logging.critical("Error: could not find grml-version file.") + logging.critical("Looks like your system is running from RAM but required files are not available.") + logging.critical("Please either boot without toram=... or use boot option toram instead of toram=...") + cleanup() + sys.exit(1) + else: + logging.critical("Error: could not find grml-version file.") + cleanup() + sys.exit(1) flavours = [] logging.debug("version_files = %s", version_files) @@ -1459,7 +1467,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")