X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=e2cffe8b7a5b4d3a64ea6c4a8bc95bb5b5272341;hp=6d2a75480e53035e1b78da834427e67431d516ad;hb=5755759faac878a451d58d5f642209aab8cb45c7;hpb=a17807b16408dc049e90fcf176dd5e0a0e9abd91 diff --git a/grml2usb b/grml2usb index 6d2a754..e2cffe8 100755 --- a/grml2usb +++ b/grml2usb @@ -1472,7 +1472,7 @@ def install(image, device): logging.info("Using %s as install base", image) else: logging.info("Using ISO %s", image) - iso_mountpoint = tempfile.mkdtemp(prefix="grml2usb", dir=options.tmpdir) + iso_mountpoint = tempfile.mkdtemp(prefix="grml2usb", dir=os.path.abspath(options.tmpdir)) register_tmpfile(iso_mountpoint) remove_image_mountpoint = True try: @@ -1705,6 +1705,11 @@ def check_programs(): def load_loop(): """Runs modprobe loop and throws away it's output""" + if not which("modprobe"): + logging.critical("Fatal: modprobe not available, can not continue - sorry.") + logging.critical("Hint: is /sbin missing in PATH?") + sys.exit(1) + proc = subprocess.Popen(["modprobe", "loop"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) proc.wait()