1
0

feat: list debian kernels

This commit is contained in:
dump_stack() 2023-05-13 19:51:06 +00:00
parent 29010b2a1b
commit 17295cad89
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -24,6 +24,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/container"
"code.dumpstack.io/tools/out-of-tree/distro/debian"
"code.dumpstack.io/tools/out-of-tree/fs" "code.dumpstack.io/tools/out-of-tree/fs"
) )
@ -100,6 +101,8 @@ func MatchPackages(km config.KernelMask) (pkgs []string, err error) {
pkgs, err = matchDebImagePkg(km.DockerName(), km.ReleaseMask) pkgs, err = matchDebImagePkg(km.DockerName(), km.ReleaseMask)
case config.OracleLinux, config.CentOS: case config.OracleLinux, config.CentOS:
pkgs, err = matchOracleLinuxPkg(km.DockerName(), km.ReleaseMask) pkgs, err = matchOracleLinuxPkg(km.DockerName(), km.ReleaseMask)
case config.Debian:
pkgs, err = debian.MatchImagePkg(km)
default: default:
err = fmt.Errorf("%s not yet supported", km.DistroType.String()) err = fmt.Errorf("%s not yet supported", km.DistroType.String())
} }