1
0
Fork 0

fix: set volumes after search

master
dump_stack() 2023-05-15 10:08:34 +00:00
parent 52c452debe
commit 5e11c1939d
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 7 additions and 3 deletions

View File

@ -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 = ""