Skip to content

Commit

Permalink
image: add platform support for s390x, ppc64le in the ISO
Browse files Browse the repository at this point in the history
This commit populates the "img.Platform" struct when building
ISOs for s390x and ppc64le.

No tests right now sadly, this should be looked into but given
that it is known broken right now this change can hardly make
it worse.

Closes: #686
  • Loading branch information
mvo5 authored and achilleas-k committed Oct 30, 2024
1 parent b772e2b commit 52468d3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bib/cmd/bootc-image-builder/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,22 @@ func manifestForISO(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest, erro
},
UEFIVendor: c.SourceInfo.UEFIVendor,
}
case arch.ARCH_S390X:
img.Platform = &platform.S390X{
Zipl: true,
BasePlatform: platform.BasePlatform{
ImageFormat: platform.FORMAT_ISO,
},
}
case arch.ARCH_PPC64LE:
img.Platform = &platform.PPC64LE{
BIOS: true,
BasePlatform: platform.BasePlatform{
ImageFormat: platform.FORMAT_ISO,
},
}
default:
return nil, fmt.Errorf("unsupported architecture %v", c.Architecture)
}

img.Filename = "install.iso"
Expand Down

0 comments on commit 52468d3

Please sign in to comment.