X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=24207b632603697e2bb1310fe5409fff9daea75b;hp=1f08aea5dcd8b8c5eb536948a073820c4f8eca63;hb=6b93ccd0cbbbae5ac1f86762d89a681a3243d7fa;hpb=feca3642eb0e58461d8f4fbdcf30c39710f65bb5 diff --git a/grml2usb b/grml2usb index 1f08aea..24207b6 100755 --- a/grml2usb +++ b/grml2usb @@ -1624,6 +1624,11 @@ def check_programs(): logging.critical("Fatal: rsync not available, can not continue - sorry.") sys.exit(1) +def load_loop(): + """Runs modprobe loop and throws away it's output""" + proc = subprocess.Popen(["modprobe", "loop"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + proc.wait() + def main(): """Main function [make pylint happy :)]""" @@ -1642,6 +1647,8 @@ def main(): check_options(options) + load_loop() + logging.info("Executing grml2usb version %s", PROG_VERSION) if options.dryrun: