X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=c696623ac8310f151966be972df402f1bdab5b19;hp=6d2a75480e53035e1b78da834427e67431d516ad;hb=a22cf218fe9dfe8a3b2d90b7962bf8d20c4b910b;hpb=9e7a48deb5c2046c7087e1f998748914b01b12be diff --git a/grml2usb b/grml2usb index 6d2a754..c696623 100755 --- a/grml2usb +++ b/grml2usb @@ -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()