From 49388981aa09a0926153fe41eeb423fbb8387e55 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 1 Jun 2023 13:52:55 +0000 Subject: [PATCH] fix: check that the kernel is from the same distribution --- kernel.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel.go b/kernel.go index c249e20..1065134 100644 --- a/kernel.go +++ b/kernel.go @@ -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