1
0

feat: add dummy func to list debian kernels

This commit is contained in:
dump_stack() 2023-05-14 07:19:35 +00:00
parent 73139e1b91
commit 93a1b74e34
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 17 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import (
"code.dumpstack.io/tools/out-of-tree/cache"
"code.dumpstack.io/tools/out-of-tree/config"
"code.dumpstack.io/tools/out-of-tree/container"
"code.dumpstack.io/tools/out-of-tree/fs"
)
@ -254,3 +255,8 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
return
}
func ContainerKernels(d container.Image, kcfg *config.KernelConfig) (err error) {
err = errors.New("TODO not implemented")
return
}

View File

@ -522,6 +522,17 @@ func UpdateKernelsCfg(host, download bool) (err error) {
}
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)
if err != nil {
log.Print("gen kernels", d.Name, ":", err)