1
0

feat: add kernels list to distro interface

This commit is contained in:
2023-05-23 22:00:20 +00:00
parent c1ec4add81
commit daaef89050
9 changed files with 103 additions and 99 deletions

View File

@ -59,6 +59,15 @@ func (ol OracleLinux) Packages() (pkgs []string, err error) {
return
}
func (ol OracleLinux) Kernels() (kernels []distro.KernelInfo, err error) {
c, err := container.New(ol.Distro())
if err != nil {
return
}
return c.Kernels()
}
func (ol OracleLinux) envs() (envs []string) {
return
}