diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 2e7c43eb..42e726f4 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -266,7 +266,7 @@ def findkernels(root="/", kdir="boot"): # To find possible flavors, awk '/BuildKernel/ { print $4 }' kernel.spec flavors = ('debug', 'PAE', 'PAEdebug', 'smp', 'xen', 'lpae', 'tegra') kre = re.compile(r"vmlinuz-(?P.+?\.(?P[a-z0-9_]+)" - r"(\.(?P{0}))?)$".format("|".join(flavors))) + r"(.(?P{0}))?)$".format("|".join(flavors))) kernels = [] bootfiles = os.listdir(joinpaths(root, kdir)) for f in bootfiles: