fix: set volumes after search
This commit is contained in:
parent
52c452debe
commit
5e11c1939d
@ -332,9 +332,7 @@ func installKernel(sk config.KernelMask, pkgname string, force, headers bool) (e
|
||||
searchdir := c.Volumes.LibModules
|
||||
|
||||
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)
|
||||
// TODO We need some kind of API for that
|
||||
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
|
||||
|
||||
c.Volumes.LibModules = ""
|
||||
|
Loading…
Reference in New Issue
Block a user