Skip to content

Commit b33244b

Browse files
madhu-pillaidustymabe
authored andcommitted
osbuild-manifests: enable kubevirt image for s390x
https://issues.redhat.com/browse/OCPBUGS-54751
1 parent 3774d13 commit b33244b

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

src/osbuild-manifests/coreos.osbuild.s390x.mpp.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,3 +648,5 @@ pipelines:
648648
path: platform.qemu-secex.ipp.yaml
649649
- mpp-import-pipelines:
650650
path: platform.live.ipp.yaml
651+
- mpp-import-pipelines:
652+
path: platform.kubevirt.ipp.yaml

src/osbuild-manifests/platform.kubevirt.ipp.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,43 @@ pipelines:
5252
partition:
5353
mpp-format-int: '{image.layout[''boot''].partnum}'
5454
target: /boot
55+
# If on s390x then run zipl, which must run after the kernel
56+
# arguments get finalized in the coreos.platform stage above
57+
- mpp-if: arch == 's390x'
58+
then:
59+
type: org.osbuild.zipl.inst
60+
options:
61+
kernel: "1"
62+
kernel_opts_append:
63+
- ignition.firstboot
64+
location:
65+
mpp-format-int: '{image.layout[''boot''].start}'
66+
devices:
67+
disk:
68+
type: org.osbuild.loopback
69+
options:
70+
filename: disk.img
71+
partscan: true
72+
mounts:
73+
- name: root
74+
type: org.osbuild.xfs
75+
source: disk
76+
partition:
77+
mpp-format-int: '{image.layout[''root''].partnum}'
78+
target: /
79+
- name: boot
80+
type: org.osbuild.ext4
81+
source: disk
82+
partition:
83+
mpp-format-int: '{image.layout[''boot''].partnum}'
84+
target: /boot
85+
inputs:
86+
disk_image:
87+
type: org.osbuild.files
88+
origin: org.osbuild.pipeline
89+
references:
90+
name:raw-kubevirt-image:
91+
file: disk.img
5592
- name: qemu-kubevirt-image
5693
build:
5794
mpp-format-string: '{host_as_buildroot}'

0 commit comments

Comments
 (0)