find kernel regex
Closed this issue · 1 comments
kkzxak47 commented
In
lorax/src/pylorax/treebuilder.py
Line 385 in 00a97b6
The "findkernels" function's regex is very strict with vmlinuz file name.
It cannot parse name like "vmlinuz-4.19.278-0004", I have to add a dot, for example by renaming kernel to "vmlinuz-4.19.278-0004.1" to make lorax to find my kernel.
Is it possible to support "vmlinuz-4.19.278-0004" as well?
bcl commented
No -- it needs to be able to parse out the arch and the flavor for use in other places, and the kernel naming here is tied pretty closely to that used by Fedora, CentOS, and RHEL.
eg. vmlinuz-6.2.10-100.fc36.x86_64
or vmlinuz-5.14.0-284.11.1.el9_2.x86_64+debug
You should add .DIST.ARCH
to be compatible.