Release new version 0.11.3
[grml2usb.git] / grml2usb
index 737c68a..24207b6 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -1005,6 +1005,9 @@ def copy_bootloader_files(iso_mount, target, grml_flavour):
         logging.critical("       ... either use grml releases >=2009.10 or switch to an older grml2usb version.")
         raise
 
+    if not os.path.exists(iso_mount + '/boot/grub/footer.cfg'):
+        logging.warning("Warning: Grml releases older than 2011.12 support only one flavour in grub.")
+
     for expr in name, 'distri.cfg', \
         defaults_file, 'grml.png', 'hd.cfg', 'isolinux.cfg', 'isolinux.bin', \
         'isoprompt.cfg', 'options.cfg', \
@@ -1621,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 :)]"""
 
@@ -1639,6 +1647,8 @@ def main():
 
     check_options(options)
 
+    load_loop()
+
     logging.info("Executing grml2usb version %s", PROG_VERSION)
 
     if options.dryrun: