projects
/
grml2usb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release new version 0.13.6
[grml2usb.git]
/
grml2usb
diff --git
a/grml2usb
b/grml2usb
index
6d2a754
..
e2cffe8
100755
(executable)
--- 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)
logging.info("Using %s as install base", image)
else:
logging.info("Using ISO %s", image)
- iso_mountpoint = tempfile.mkdtemp(prefix="grml2usb", dir=o
ptions.tmpdir
)
+ iso_mountpoint = tempfile.mkdtemp(prefix="grml2usb", dir=o
s.path.abspath(options.tmpdir)
)
register_tmpfile(iso_mountpoint)
remove_image_mountpoint = True
try:
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"""
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()
proc = subprocess.Popen(["modprobe", "loop"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
proc.wait()