|
|
|
@ -28,8 +28,9 @@ import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type kernelMask struct {
|
|
|
|
|
DistroType distroType
|
|
|
|
|
ReleaseMask string
|
|
|
|
|
DistroType distroType
|
|
|
|
|
DistroRelease string // 18.04/7.4.1708/9.1
|
|
|
|
|
ReleaseMask string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type artifactType int
|
|
|
|
@ -71,6 +72,12 @@ func (ka artifact) checkSupport(ki kernelInfo, km kernelMask) (
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DistroRelease is optional
|
|
|
|
|
if km.DistroRelease != "" && ki.DistroRelease != km.DistroRelease {
|
|
|
|
|
supported = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
supported, err = regexp.MatchString(km.ReleaseMask, ki.KernelRelease)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|