projects
/
grml2usb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eb087c0
)
Modify grub config files for the specified flavour instead of all grub config files
author
Ulrich Dangel
<mru@grml.org>
Tue, 10 Jan 2012 17:12:49 +0000
(18:12 +0100)
committer
Ulrich Dangel
<mru@grml.org>
Tue, 10 Jan 2012 17:12:49 +0000
(18:12 +0100)
grml2usb
patch
|
blob
|
history
diff --git
a/grml2usb
b/grml2usb
index
7d9f92e
..
5ab3bf2
100755
(executable)
--- a/
grml2usb
+++ b/
grml2usb
@@
-1121,7
+1121,7
@@
def handle_grub_config(grml_flavour, device, target):
for regex in options.removeoption:
remove_regexes.append(re.compile(regex))
for regex in options.removeoption:
remove_regexes.append(re.compile(regex))
- for filename in glob.glob(grub_target + '*.cfg'):
+ for filename in glob.glob(grub_target +
grml_flavour +
'*.cfg'):
for line in fileinput.input(filename, inplace=1):
line = line.rstrip("\r\n")
if option_re.search(line):
for line in fileinput.input(filename, inplace=1):
line = line.rstrip("\r\n")
if option_re.search(line):