1
0

fix: set volumes after search

This commit is contained in:
dump_stack() 2023-05-15 10:08:34 +00:00
parent 52c452debe
commit 5e11c1939d
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -332,9 +332,7 @@ func installKernel(sk config.KernelMask, pkgname string, force, headers bool) (e
searchdir := c.Volumes.LibModules searchdir := c.Volumes.LibModules
if sk.DistroType == config.Debian { if sk.DistroType == config.Debian {
// Debian has different kernels (package version) by the // TODO We need some kind of API for that
// same name (ABI), so we need to separate /boot
c.Volumes = debian.ContainerVolumes(sk, pkgname)
searchdir = config.Dir("volumes", sk.DockerName()) searchdir = config.Dir("volumes", sk.DockerName())
} }
@ -354,6 +352,12 @@ func installKernel(sk config.KernelMask, pkgname string, force, headers bool) (e
} }
} }
if sk.DistroType == config.Debian {
// Debian has different kernels (package version) by the
// same name (ABI), so we need to separate /boot
c.Volumes = debian.ContainerVolumes(sk, pkgname)
}
volumes := c.Volumes volumes := c.Volumes
c.Volumes.LibModules = "" c.Volumes.LibModules = ""