From: Ulrich Dangel Date: Mon, 26 Oct 2009 11:31:53 +0000 (+0100) Subject: Support new addition files for addon menu from grml-live. X-Git-Tag: v0.9.15~5 X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=0a6e0b0a13f590907c790094daa57810903c391f;hp=b5b9182aed0cd5b4788aee58026fbbf0fe71d336 Support new addition files for addon menu from grml-live. --- diff --git a/grml2usb b/grml2usb index 31cf05b..6a21903 100755 --- a/grml2usb +++ b/grml2usb @@ -17,6 +17,7 @@ from optparse import OptionParser from inspect import isroutine, isclass import datetime, logging, os, re, subprocess, sys, tempfile, time, os.path import fileinput +import glob # global variables PROG_VERSION = "0.9.14" @@ -1149,6 +1150,10 @@ def copy_bootloader_files(iso_mount, target): path = search_file(filename, iso_mount + '/boot/isolinux/') exec_rsync(path, syslinux_target + filename) + # copy the addons_*.cfg file to the new syslinux directory + for filename in glob.glob(iso_mount + '/boot/isolinux/' + 'addon_*.cfg'): + exec_rsync(filename, syslinux_target) + path = search_file('hidden.cfg', iso_mount + '/boot/isolinux/') exec_rsync(path, syslinux_target + "new_" + 'hidden.cfg')