feat: add support for blocklisting kernels
This commit is contained in:
parent
482378abaf
commit
79037d61ec
@ -36,4 +36,6 @@ type KernelInfo struct {
|
||||
|
||||
// Package name, not mandatory (yet)
|
||||
Package string
|
||||
|
||||
Blocklisted bool
|
||||
}
|
||||
|
6
pew.go
6
pew.go
@ -887,6 +887,12 @@ func (cmd PewCmd) performCI(ka config.Artifact) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
if kernel.Blocklisted {
|
||||
log.Debug().Str("kernel", kernel.KernelVersion).
|
||||
Msgf("skip (blocklisted)")
|
||||
continue
|
||||
}
|
||||
|
||||
if supported {
|
||||
found = true
|
||||
max--
|
||||
|
Loading…
x
Reference in New Issue
Block a user