1
0

feat: add smap blocklist for some debian 7 kernels

This commit is contained in:
dump_stack() 2023-05-31 16:15:27 +00:00
parent 6d6ee135cd
commit 5396375b47
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -387,6 +387,17 @@ func (d Debian) Kernels() (kernels []distro.KernelInfo, err error) {
Package: pkgname, Package: pkgname,
} }
smapBlocklist := []string{
"3.10.5-1~bpo70+1",
"3.10.11-1~bpo70+1",
"3.9.6-1~bpo70+1",
}
for _, ver := range smapBlocklist {
if strings.Contains(release, ver) {
ki.CPU.Flags = append(ki.CPU.Flags, "smap=off")
}
}
kernels = append(kernels, ki) kernels = append(kernels, ki)
} }