projects
/
grml2usb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b5b9182
)
Support new addition files for addon menu from grml-live.
author
Ulrich Dangel
<uli@spamt.net>
Mon, 26 Oct 2009 11:31:53 +0000
(12:31 +0100)
committer
Ulrich Dangel
<uli@spamt.net>
Mon, 26 Oct 2009 11:35:33 +0000
(12:35 +0100)
grml2usb
patch
|
blob
|
history
diff --git
a/grml2usb
b/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')