From: Ulrich Dangel Date: Tue, 10 Jan 2012 17:12:49 +0000 (+0100) Subject: Modify grub config files for the specified flavour instead of all grub config files X-Git-Tag: v0.11.5~3 X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=460813178067e6c3e30a041d49f7b44577f77b9f;ds=sidebyside Modify grub config files for the specified flavour instead of all grub config files --- diff --git a/grml2usb b/grml2usb index 7d9f92e..5ab3bf2 100755 --- 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 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):