From 3877a01364b2ba0b74fcdb9b9b5ed712a7ac29f7 Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Wed, 28 Oct 2009 23:05:15 +0100 Subject: [PATCH] Always copy grub files. --- grml2usb | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.1.4