From: Christian Hofstaedtler Date: Thu, 22 Dec 2011 00:41:50 +0000 (+0100) Subject: Load loop kernel module [Closes: issue1097] X-Git-Tag: v0.11.3~1 X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=6b93ccd0cbbbae5ac1f86762d89a681a3243d7fa;hp=feca3642eb0e58461d8f4fbdcf30c39710f65bb5;ds=sidebyside Load loop kernel module [Closes: issue1097] --- 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: