Skip to content

Commit 1d51ca4

Browse files
committed
osbuild: switch applehv,hyperv,gcp manifests to use coreos.platforms stage
We can now use the coreos.platforms stage to set the kernel arguments and update the GRUB console settings. Let's use that here and also add the gcp entry to the aarch64 manifest since it now doesn't contain the x86_64 specific kernel arguments in the stage definition.
1 parent ae118e0 commit 1d51ca4

File tree

4 files changed

+70
-45
lines changed

4 files changed

+70
-45
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ pipelines:
516516
default: true
517517
- mpp-import-pipelines:
518518
path: platform.applehv.ipp.yaml
519+
- mpp-import-pipelines:
520+
path: platform.gcp.ipp.yaml
519521
- mpp-import-pipelines:
520522
path: platform.hyperv.ipp.yaml
521523
- mpp-import-pipelines:

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

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,34 @@ pipelines:
2121
filename: disk.img
2222
size:
2323
mpp-format-string: "{cloud_image_size_mb * 1024 * 1024}"
24-
- type: org.osbuild.kernel-cmdline.bls-append
24+
- type: org.osbuild.coreos.platform
2525
options:
26-
bootpath: mount:///
27-
kernel_opts:
28-
- ignition.platform.id=applehv
26+
platform: applehv
2927
devices:
30-
boot:
28+
disk:
3129
type: org.osbuild.loopback
3230
options:
3331
filename: disk.img
34-
start:
35-
mpp-format-int: '{image.layout[''boot''].start}'
36-
size:
37-
mpp-format-int: '{image.layout[''boot''].size}'
32+
partscan: true
3833
mounts:
39-
- name: boot
40-
type: org.osbuild.ext4
41-
source: boot
42-
target: /
34+
- name: root
35+
type: org.osbuild.xfs
36+
source: disk
37+
partition:
38+
mpp-format-int: '{image.layout[''root''].partnum}'
39+
target: /
40+
- name: ostree.deployment
41+
type: org.osbuild.ostree.deployment
42+
options:
43+
source: mount
44+
deployment:
45+
default: true
46+
- name: boot
47+
type: org.osbuild.ext4
48+
source: disk
49+
partition:
50+
mpp-format-int: '{image.layout[''boot''].partnum}'
51+
target: /boot
4352
- name: applehv
4453
stages:
4554
- type: org.osbuild.copy

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

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# This file isn't yet being used today but holds an OSBuild image
2-
# definition for the gcp platform. It currently has the x86_64
3-
# kernel arguments for console so it is only included in
4-
# coreos.osbuild.x86_64.mpp.yaml for now.
2+
# definition for the gcp platform.
53
version: '2'
64
pipelines:
75
- name: raw-gcp-image
@@ -23,27 +21,34 @@ pipelines:
2321
filename: disk.raw
2422
size:
2523
mpp-format-string: "{cloud_image_size_mb * 1024 * 1024}"
26-
- type: org.osbuild.kernel-cmdline.bls-append
24+
- type: org.osbuild.coreos.platform
2725
options:
28-
bootpath: mount:///
29-
kernel_opts:
30-
- ignition.platform.id=gcp
31-
- console=tty0
32-
- console=ttyS0,115200n8
26+
platform: gcp
3327
devices:
34-
boot:
28+
disk:
3529
type: org.osbuild.loopback
3630
options:
37-
filename: disk.raw
38-
start:
39-
mpp-format-int: '{image.layout[''boot''].start}'
40-
size:
41-
mpp-format-int: '{image.layout[''boot''].size}'
31+
filename: disk.img
32+
partscan: true
4233
mounts:
43-
- name: boot
44-
type: org.osbuild.ext4
45-
source: boot
46-
target: /
34+
- name: root
35+
type: org.osbuild.xfs
36+
source: disk
37+
partition:
38+
mpp-format-int: '{image.layout[''root''].partnum}'
39+
target: /
40+
- name: ostree.deployment
41+
type: org.osbuild.ostree.deployment
42+
options:
43+
source: mount
44+
deployment:
45+
default: true
46+
- name: boot
47+
type: org.osbuild.ext4
48+
source: disk
49+
partition:
50+
mpp-format-int: '{image.layout[''boot''].partnum}'
51+
target: /boot
4752
- name: raw-gcp-image-tar
4853
stages:
4954
- type: org.osbuild.tar

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

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,34 @@ pipelines:
2121
filename: disk.img
2222
size:
2323
mpp-format-string: "{cloud_image_size_mb * 1024 * 1024}"
24-
- type: org.osbuild.kernel-cmdline.bls-append
24+
- type: org.osbuild.coreos.platform
2525
options:
26-
bootpath: mount:///
27-
kernel_opts:
28-
- ignition.platform.id=hyperv
26+
platform: hyperv
2927
devices:
30-
boot:
28+
disk:
3129
type: org.osbuild.loopback
3230
options:
3331
filename: disk.img
34-
start:
35-
mpp-format-int: '{image.layout[''boot''].start}'
36-
size:
37-
mpp-format-int: '{image.layout[''boot''].size}'
32+
partscan: true
3833
mounts:
39-
- name: boot
40-
type: org.osbuild.ext4
41-
source: boot
42-
target: /
34+
- name: root
35+
type: org.osbuild.xfs
36+
source: disk
37+
partition:
38+
mpp-format-int: '{image.layout[''root''].partnum}'
39+
target: /
40+
- name: ostree.deployment
41+
type: org.osbuild.ostree.deployment
42+
options:
43+
source: mount
44+
deployment:
45+
default: true
46+
- name: boot
47+
type: org.osbuild.ext4
48+
source: disk
49+
partition:
50+
mpp-format-int: '{image.layout[''boot''].partnum}'
51+
target: /boot
4352
- name: hyperv
4453
stages:
4554
- type: org.osbuild.qemu

0 commit comments

Comments
 (0)