feat: pass kernel mask to get container volumes
This commit is contained in:
parent
a05b579086
commit
52c452debe
@ -292,8 +292,8 @@ func ContainerKernels(d container.Image, kcfg *config.KernelConfig) (err error)
|
||||
return
|
||||
}
|
||||
|
||||
func ContainerVolumes(pkgname, contname string) (volumes container.Volumes) {
|
||||
pkgdir := filepath.Join("volumes", contname, pkgname)
|
||||
func ContainerVolumes(km config.KernelMask, pkgname string) (volumes container.Volumes) {
|
||||
pkgdir := filepath.Join("volumes", km.DockerName(), pkgname)
|
||||
|
||||
volumes.LibModules = config.Dir(pkgdir, "/lib/modules")
|
||||
volumes.UsrSrc = config.Dir(pkgdir, "/usr/src")
|
||||
|
@ -334,7 +334,7 @@ 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.DockerName(), pkgname)
|
||||
c.Volumes = debian.ContainerVolumes(sk, pkgname)
|
||||
searchdir = config.Dir("volumes", sk.DockerName())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user