From caaaf5ba3cdd6a98441c6c19d6906aa75cd1f5fc Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 24 Mar 2026 09:06:28 -0700 Subject: [PATCH] findkernels: Enable support for 64k kernel flavor In order to support new kernel flavors we need to add it to the list of them in treebuilder. The kernel will then be included in the kernels list passed to the templates, allowing it to be used with installkernel and installinitrd. Resolves: RHEL-163728 --- src/pylorax/treebuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 2c6b5d83c..005fcaa05 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -413,7 +413,7 @@ def copy_dracut_hooks(self, hooks): def findkernels(root="/", kdir="boot"): # To find possible flavors, awk '/BuildKernel/ { print $4 }' kernel.spec - flavors = ('debug', 'PAE', 'PAEdebug', 'smp', 'xen', 'lpae') + flavors = ('debug', 'PAE', 'PAEdebug', 'smp', 'xen', 'lpae', '64k') kre = re.compile(r"vmlinuz-(?P.+?\.(?P[a-z0-9_]+)" r"(.(?P{0}))?)$".format("|".join(flavors))) kernels = []