diff --git a/src/osbuild-manifests/coreos.osbuild.s390x.mpp.yaml b/src/osbuild-manifests/coreos.osbuild.s390x.mpp.yaml index dc8647c99e..be3fc66917 100644 --- a/src/osbuild-manifests/coreos.osbuild.s390x.mpp.yaml +++ b/src/osbuild-manifests/coreos.osbuild.s390x.mpp.yaml @@ -648,3 +648,5 @@ pipelines: path: platform.qemu-secex.ipp.yaml - mpp-import-pipelines: path: platform.live.ipp.yaml + - mpp-import-pipelines: + path: platform.kubevirt.ipp.yaml diff --git a/src/osbuild-manifests/platform.kubevirt.ipp.yaml b/src/osbuild-manifests/platform.kubevirt.ipp.yaml index 60a8fece7c..7e2d30b769 100644 --- a/src/osbuild-manifests/platform.kubevirt.ipp.yaml +++ b/src/osbuild-manifests/platform.kubevirt.ipp.yaml @@ -52,6 +52,43 @@ pipelines: partition: mpp-format-int: '{image.layout[''boot''].partnum}' target: /boot + # If on s390x then run zipl, which must run after the kernel + # arguments get finalized in the coreos.platform stage above + - mpp-if: arch == 's390x' + then: + type: org.osbuild.zipl.inst + options: + kernel: "1" + kernel_opts_append: + - ignition.firstboot + location: + mpp-format-int: '{image.layout[''boot''].start}' + devices: + disk: + type: org.osbuild.loopback + options: + filename: disk.img + partscan: true + mounts: + - name: root + type: org.osbuild.xfs + source: disk + partition: + mpp-format-int: '{image.layout[''root''].partnum}' + target: / + - name: boot + type: org.osbuild.ext4 + source: disk + partition: + mpp-format-int: '{image.layout[''boot''].partnum}' + target: /boot + inputs: + disk_image: + type: org.osbuild.files + origin: org.osbuild.pipeline + references: + name:raw-kubevirt-image: + file: disk.img - name: qemu-kubevirt-image build: mpp-format-string: '{host_as_buildroot}'