From 2a93d92c34ab16af395979b8e4546aa3aa6d5cc9 Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Wed, 18 Aug 2010 15:33:39 +0200 Subject: [PATCH 1/1] Copy bootloader files from /usr/lib/syslinux/ [Closes: 894] --- grml2usb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grml2usb b/grml2usb index 6c74a52..89c1f22 100755 --- a/grml2usb +++ b/grml2usb @@ -29,6 +29,7 @@ DATESTAMP = time.mktime(datetime.datetime.now().timetuple()) # unique identifier GRML_FLAVOURS = set() # which flavours are being installed? GRML_DEFAULT = None UUID = None +SYSLINUX_LIBS = "/usr/lib/syslinux/" def syslinux_warning(option, opt, value, opt_parser): """A helper function for printing a warning about deprecated option @@ -1313,9 +1314,13 @@ def copy_bootloader_files(iso_mount, target, grml_flavour): for expr in name, 'distri.cfg', \ defaults_file, 'grml.png', 'hd.cfg', 'isolinux.cfg', 'isolinux.bin', \ 'isoprompt.cfg', 'options.cfg', \ - 'prompt.cfg', 'vesamenu.c32', 'vesamenu.cfg', 'grml.png', '*.c32': + 'prompt.cfg', 'vesamenu.cfg', 'grml.png', '*.c32': glob_and_copy(iso_mount + source_dir + expr, syslinux_target) + for filename in glob.glob1(syslinux_target, "*.c32"): + copy_if_exist(os.path.join(SYSLINUX_LIBS, filename), syslinux_target) + + # copy the addons_*.cfg file to the new syslinux directory glob_and_copy(iso_mount + source_dir + 'addon*.cfg', syslinux_target) -- 2.1.4