Skip to content

Commit e504452

Browse files
committed
osbuild: fix openstack/ibmcloud s390x images
We needed the zipl pieces for s390x. Fixes 79210da 224bef3.
1 parent 4c2afc4 commit e504452

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,36 @@ 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
5585
- name: ibmcloud
5686
build:
5787
mpp-format-string: '{host_as_buildroot}'

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,36 @@ pipelines:
5050
partition:
5151
mpp-format-int: '{image.layout[''boot''].partnum}'
5252
target: /boot
53+
# If on s390x then run zipl, which must run after the kernel
54+
# arguments get finalized in the coreos.platform stage above
55+
- mpp-if: arch == 's390x'
56+
then:
57+
type: org.osbuild.zipl.inst
58+
options:
59+
kernel: "1"
60+
kernel_opts_append:
61+
- ignition.firstboot
62+
location:
63+
mpp-format-int: '{image.layout[''boot''].start}'
64+
devices:
65+
disk:
66+
type: org.osbuild.loopback
67+
options:
68+
filename: disk.img
69+
partscan: true
70+
mounts:
71+
- name: root
72+
type: org.osbuild.xfs
73+
source: disk
74+
partition:
75+
mpp-format-int: '{image.layout[''root''].partnum}'
76+
target: /
77+
- name: boot
78+
type: org.osbuild.ext4
79+
source: disk
80+
partition:
81+
mpp-format-int: '{image.layout[''boot''].partnum}'
82+
target: /boot
5383
- name: openstack
5484
build:
5585
mpp-format-string: '{host_as_buildroot}'

0 commit comments

Comments
 (0)