1
0

feat: implement openSUSE 42+ support

This commit is contained in:
2023-06-15 15:24:29 +00:00
parent c12b0a8829
commit a6944050cc
16 changed files with 253 additions and 25 deletions

View File

@@ -14,6 +14,7 @@ type distribution interface {
Packages() (packages []string, err error)
Install(pkg string, headers bool) (err error)
Kernels() (kernels []KernelInfo, err error)
RootFS() string
}
func Register(d distribution) {
@@ -88,3 +89,13 @@ func (d Distro) Equal(to Distro) bool {
}
return false
}
func (d Distro) RootFS() string {
for _, dd := range distros {
if dd.Equal(d) {
return dd.RootFS()
}
}
return ""
}