Skip to content

Commit

Permalink
manifest: add anaconda boot packages for s390x, ppc64le
Browse files Browse the repository at this point in the history
This commit adds the boot packages for s39x,ppc64le for anaconda
to build images.

Closes: osbuild/bootc-image-builder#705
  • Loading branch information
mvo5 committed Nov 7, 2024
1 parent 9c44baf commit 2afab87
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions pkg/manifest/anaconda_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func NewAnacondaInstaller(installerType AnacondaInstallerType,
// TODO: refactor - what is required to boot and what to build, and
// do they all belong in this pipeline?
func (p *AnacondaInstaller) anacondaBootPackageSet() []string {
packages := []string{
grubPackages := []string{
"grub2-tools",
"grub2-tools-extra",
"grub2-tools-minimal",
Expand All @@ -126,7 +126,7 @@ func (p *AnacondaInstaller) anacondaBootPackageSet() []string {

switch p.platform.GetArch() {
case arch.ARCH_X86_64:
packages = append(packages,
return append(grubPackages,
"grub2-efi-x64",
"grub2-efi-x64-cdboot",
"grub2-pc",
Expand All @@ -136,16 +136,29 @@ func (p *AnacondaInstaller) anacondaBootPackageSet() []string {
"syslinux-nonlinux",
)
case arch.ARCH_AARCH64:
packages = append(packages,
return append(grubPackages,
"grub2-efi-aa64-cdboot",
"grub2-efi-aa64",
"shim-aa64",
)
case arch.ARCH_PPC64LE:
// from platform/ppc64le.go
return append(grubPackages,
"dracut-config-generic",
"powerpc-utils",
"grub2-ppc64le",
"grub2-ppc64le-modules",
)
case arch.ARCH_S390X:
// from platform/ppc64le.go
return []string{
"dracut-config-generic",
"s390utils-base",
"s390utils-core",
}
default:
panic(fmt.Sprintf("unsupported arch: %s", p.platform.GetArch()))
}

return packages
}

func (p *AnacondaInstaller) getBuildPackages(Distro) []string {
Expand Down

0 comments on commit 2afab87

Please sign in to comment.