From 6b93ccd0cbbbae5ac1f86762d89a681a3243d7fa Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Thu, 22 Dec 2011 01:41:50 +0100 Subject: [PATCH] Load loop kernel module [Closes: issue1097] --- grml2usb | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- 2.1.4