feat: add dummy func to list debian kernels
This commit is contained in:
parent
73139e1b91
commit
93a1b74e34
@ -11,6 +11,7 @@ import (
|
|||||||
|
|
||||||
"code.dumpstack.io/tools/out-of-tree/cache"
|
"code.dumpstack.io/tools/out-of-tree/cache"
|
||||||
"code.dumpstack.io/tools/out-of-tree/config"
|
"code.dumpstack.io/tools/out-of-tree/config"
|
||||||
|
"code.dumpstack.io/tools/out-of-tree/container"
|
||||||
"code.dumpstack.io/tools/out-of-tree/fs"
|
"code.dumpstack.io/tools/out-of-tree/fs"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -254,3 +255,8 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ContainerKernels(d container.Image, kcfg *config.KernelConfig) (err error) {
|
||||||
|
err = errors.New("TODO not implemented")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
@ -522,6 +522,17 @@ func UpdateKernelsCfg(host, download bool) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, d := range dockerImages {
|
for _, d := range dockerImages {
|
||||||
|
// TODO Requires changing the idea of how we list
|
||||||
|
// kernels from containers to distro/-related
|
||||||
|
// functions.
|
||||||
|
if strings.Contains(d.Name, "debian") {
|
||||||
|
err = debian.ContainerKernels(d, &newkcfg)
|
||||||
|
if err != nil {
|
||||||
|
log.Print("gen kernels", d.Name, ":", err)
|
||||||
|
}
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
err = listContainersKernels(d, &newkcfg, download)
|
err = listContainersKernels(d, &newkcfg, download)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print("gen kernels", d.Name, ":", err)
|
log.Print("gen kernels", d.Name, ":", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user