Support new addition files for addon menu from grml-live.
authorUlrich Dangel <uli@spamt.net>
Mon, 26 Oct 2009 11:31:53 +0000 (12:31 +0100)
committerUlrich Dangel <uli@spamt.net>
Mon, 26 Oct 2009 11:35:33 +0000 (12:35 +0100)
grml2usb

index 31cf05b..6a21903 100755 (executable)
--- 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
 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"
 
 # 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)
 
         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')
 
     path = search_file('hidden.cfg', iso_mount + '/boot/isolinux/')
     exec_rsync(path, syslinux_target + "new_" + 'hidden.cfg')