1
0
Fork 0

fix: check that the kernel is from the same distribution

timestamps
dump_stack() 2023-06-01 13:52:55 +00:00
parent a72d9b77de
commit 49388981aa
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,10 @@ func (cmd *KernelCmd) GenKernel(km config.Target, pkg string) {
reinstall := false
for _, kinfo := range cmd.kcfg.Kernels {
if !km.Distro.Equal(kinfo.Distro) {
continue
}
var found bool
if kinfo.Distro.ID == distro.Debian { // FIXME
found = pkg == kinfo.Package