From: Ulrich Dangel Date: Wed, 28 Oct 2009 22:05:15 +0000 (+0100) Subject: Always copy grub files. X-Git-Tag: v0.9.17~2 X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=3877a01364b2ba0b74fcdb9b9b5ed712a7ac29f7;hp=96d76e0666a7e58ecf7aedc4a503a3471d132be7 Always copy grub files. --- diff --git a/grml2usb b/grml2usb index f4d054b..361e6a0 100755 --- a/grml2usb +++ b/grml2usb @@ -1196,6 +1196,15 @@ def copy_bootloader_files(iso_mount, target): if os.path.isfile("/usr/share/grub/ascii.pf2"): exec_rsync('/usr/share/grub/ascii.pf2', grub_target + 'ascii.pf2') + # always copy grub content as it might be useful + for file in glob.glob(iso_mount + '/boot/grub/*.mod'): + exec_rsync(file, grub_target) + + for file in glob.glob(iso_mount + '/boot/grub/*.img'): + exec_rsync(file, grub_target) + + for file in glob.glob(iso_mount + '/boot/grub/stage*'): + exec_rsync(file, grub_target) def install_iso_files(grml_flavour, iso_mount, device, target): """Copy files from ISO to given target