debian-forge-composer/internal/runner/centos.go
Achilleas Koutsou 5592e6a51f runner: add CentOS runner type
New runner type for CentOS 8 and 9.  Copied from RHEL
2022-11-28 17:20:49 +01:00

23 lines
391 B
Go

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
}