Skip to content

Commit 3f93435

Browse files
committed
fix: correctly detect kernel 6.10 and newer as a newer kernel
1 parent 380c875 commit 3f93435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/configs/configs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func vfio_modules() []string {
221221

222222
// If we are on a kernel older than 6.2
223223
sysinfo := uname.New()
224-
kernel_re := regexp.MustCompile(`^(6\.1|6\.0|[1-5]\.)`)
224+
kernel_re := regexp.MustCompile(`^(6\.1|6\.0|[1-5]\.\d{1,2})\.`)
225225
if kernel_re.MatchString(sysinfo.Kernel) {
226226
// Write to the debug log
227227
logger.Printf("Linux kernel version %s detected!\nIncluding vfio_virqfd module\n", sysinfo.Kernel)

0 commit comments

Comments
 (0)