RHEL-84: panic error on tar image on s390x

Building `tar` image for `s390x` on RHEL-84 ends with panic:
"s390x image must have a partition table, this is a programming error"

A tar image should not need a partition table, so this error does not
make sense.
This commit is contained in:
Tomas Hozza 2022-03-29 17:32:32 +02:00 committed by Alexander Todorov
parent 967c8734a1
commit 287e63735c

View file

@ -407,7 +407,7 @@ func (t *imageType) pipeline(c *blueprint.Customizations, options distro.ImageOp
p.SetBuild(t.buildPipeline(repos, *t.arch, buildPackageSpecs), "org.osbuild.rhel84")
}
if t.arch.Name() == distro.S390xArchName {
if t.arch.Name() == distro.S390xArchName && t.bootable {
if pt == nil {
panic("s390x image must have a partition table, this is a programming error")
}