From: Ulrich Dangel Date: Mon, 19 Oct 2009 23:05:22 +0000 (+0200) Subject: Adjust regex for detecting and changing filenames X-Git-Tag: v0.9.13~25 X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=487e2141208b2ebaef9f85c69c41b631f778274c Adjust regex for detecting and changing filenames --- diff --git a/grml2usb b/grml2usb index 632134e..457346a 100755 --- a/grml2usb +++ b/grml2usb @@ -1350,7 +1350,7 @@ def initial_syslinux_config(target): def adjust_syslinux_bootoptions(src_name, dst_name, flavour): append_re = re.compile("^(\s*append.*)$", re.I) - boot_re = re.compile("/boot/([a-zA-Z0-9_]+/)+(\w+)") + boot_re = re.compile("/boot/([a-zA-Z0-9_]+/)+([a-zA-Z0-9._]+)") flavour_re = re.compile("(label.*)(grml\w+)") default_re = re.compile("(default.cfg)") src = open(src_name, "r")