1
0
Fork 0

feat: pass kernel mask to get container volumes

timestamps
dump_stack() 2023-05-15 09:43:48 +00:00
parent a05b579086
commit 52c452debe
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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())
}