runner: add CentOS runner type
New runner type for CentOS 8 and 9. Copied from RHEL
This commit is contained in:
parent
e9746bed32
commit
5592e6a51f
1 changed files with 23 additions and 0 deletions
23
internal/runner/centos.go
Normal file
23
internal/runner/centos.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package runner
|
||||
|
||||
import "fmt"
|
||||
|
||||
type CentOS struct {
|
||||
Version uint64
|
||||
}
|
||||
|
||||
func (c *CentOS) String() string {
|
||||
return fmt.Sprintf("org.osbuild.centos%d", c.Version)
|
||||
}
|
||||
|
||||
func (c *CentOS) GetBuildPackages() []string {
|
||||
packages := []string{
|
||||
"glibc", // ldconfig
|
||||
}
|
||||
if c.Version >= 8 {
|
||||
packages = append(packages,
|
||||
"systemd", // systemd-tmpfiles and systemd-sysusers
|
||||
)
|
||||
}
|
||||
return packages
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue