From 287e63735c8030e451bfeebcf52fef44f0783d3f Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Tue, 29 Mar 2022 17:32:32 +0200 Subject: [PATCH] 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. --- internal/distro/rhel84/distro.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/distro/rhel84/distro.go b/internal/distro/rhel84/distro.go index 7bf2503fd..de193d6b2 100644 --- a/internal/distro/rhel84/distro.go +++ b/internal/distro/rhel84/distro.go @@ -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") }