X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml2usb;h=24207b632603697e2bb1310fe5409fff9daea75b;hb=d781735b12cdb6a68a8ff909df42a03460c0ef5f;hp=737c68a9ba376c7aea7e845c2adf5440c486cece;hpb=100193b24b57c98c475f58484764d1b945666ff4;p=grml2usb.git diff --git a/grml2usb b/grml2usb index 737c68a..24207b6 100755 --- 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: