feat: implement openSUSE 42+ support
This commit is contained in:
@@ -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 ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user