fix: check that the kernel is from the same distribution
This commit is contained in:
parent
a72d9b77de
commit
49388981aa
@ -99,6 +99,10 @@ func (cmd *KernelCmd) GenKernel(km config.Target, pkg string) {
|
|||||||
|
|
||||||
reinstall := false
|
reinstall := false
|
||||||
for _, kinfo := range cmd.kcfg.Kernels {
|
for _, kinfo := range cmd.kcfg.Kernels {
|
||||||
|
if !km.Distro.Equal(kinfo.Distro) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
var found bool
|
var found bool
|
||||||
if kinfo.Distro.ID == distro.Debian { // FIXME
|
if kinfo.Distro.ID == distro.Debian { // FIXME
|
||||||
found = pkg == kinfo.Package
|
found = pkg == kinfo.Package
|
||||||
|
Loading…
Reference in New Issue
Block a user