fix: correctly detect kernel 6.10 and newer as a newer kernel
This commit is contained in:
parent
380c875213
commit
3f934351fc
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ func vfio_modules() []string {
|
|||
|
||||
// If we are on a kernel older than 6.2
|
||||
sysinfo := uname.New()
|
||||
kernel_re := regexp.MustCompile(`^(6\.1|6\.0|[1-5]\.)`)
|
||||
kernel_re := regexp.MustCompile(`^(6\.1|6\.0|[1-5]\.\d{1,2})\.`)
|
||||
if kernel_re.MatchString(sysinfo.Kernel) {
|
||||
// Write to the debug log
|
||||
logger.Printf("Linux kernel version %s detected!\nIncluding vfio_virqfd module\n", sysinfo.Kernel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue