Skip to content

Commit

Permalink
fix: correctly detect kernel 6.10 and newer as a newer kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariKnight committed Aug 10, 2024
1 parent 380c875 commit 3f93435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/configs/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3f93435

Please sign in to comment.