From 460813178067e6c3e30a041d49f7b44577f77b9f Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Tue, 10 Jan 2012 18:12:49 +0100 Subject: [PATCH] Modify grub config files for the specified flavour instead of all grub config files --- grml2usb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.1.4