Adjust regex for detecting and changing filenames
authorUlrich Dangel <uli@spamt.net>
Mon, 19 Oct 2009 23:05:22 +0000 (01:05 +0200)
committerUlrich Dangel <uli@spamt.net>
Mon, 19 Oct 2009 23:05:22 +0000 (01:05 +0200)
grml2usb

index 632134e..457346a 100755 (executable)
--- 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")