Skip to content

Commit 06238d5

Browse files
committed
osbuild: break out qemu definition into own manifest
This one was a tiny bit more tricky because on s390x we also need to run zipl, but adding the arch variable in helped solve that problem.
1 parent d9df5c7 commit 06238d5

File tree

6 files changed

+106
-285
lines changed

6 files changed

+106
-285
lines changed

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

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -598,53 +598,6 @@ pipelines:
598598
partition:
599599
mpp-format-int: '{image4k.layout[''boot''].partnum}'
600600
target: /boot
601-
- name: raw-qemu-image
602-
stages:
603-
- type: org.osbuild.copy
604-
inputs:
605-
tree:
606-
type: org.osbuild.tree
607-
origin: org.osbuild.pipeline
608-
references:
609-
- name:raw-image
610-
options:
611-
paths:
612-
- from: input://tree/disk.img
613-
to: tree:///disk.img
614-
# Increase the size to the cloud image size
615-
- type: org.osbuild.truncate
616-
options:
617-
filename: disk.img
618-
size:
619-
mpp-format-string: "{cloud_image_size_mb * 1024 * 1024}"
620-
- type: org.osbuild.coreos.platform
621-
options:
622-
platform: qemu
623-
devices:
624-
disk:
625-
type: org.osbuild.loopback
626-
options:
627-
filename: disk.img
628-
partscan: true
629-
mounts:
630-
- name: root
631-
type: org.osbuild.xfs
632-
source: disk
633-
partition:
634-
mpp-format-int: '{image.layout[''root''].partnum}'
635-
target: /
636-
- name: ostree.deployment
637-
type: org.osbuild.ostree.deployment
638-
options:
639-
source: mount
640-
deployment:
641-
default: true
642-
- name: boot
643-
type: org.osbuild.ext4
644-
source: disk
645-
partition:
646-
mpp-format-int: '{image.layout[''boot''].partnum}'
647-
target: /boot
648601
- name: metal
649602
stages:
650603
- type: org.osbuild.copy
@@ -673,24 +626,9 @@ pipelines:
673626
- from: input://tree/disk.img
674627
to:
675628
mpp-format-string: 'tree:///{filename}'
676-
- name: qemu
677-
stages:
678-
- type: org.osbuild.qemu
679-
inputs:
680-
image:
681-
type: org.osbuild.files
682-
origin: org.osbuild.pipeline
683-
references:
684-
name:raw-qemu-image:
685-
file: disk.img
686-
options:
687-
filename:
688-
mpp-format-string: '{filename}'
689-
format:
690-
type: qcow2
691-
compression: false
692-
compat: '1.1'
693629
- mpp-import-pipelines:
694630
path: platform.applehv.ipp.yaml
695631
- mpp-import-pipelines:
696632
path: platform.hyperv.ipp.yaml
633+
- mpp-import-pipelines:
634+
path: platform.qemu.ipp.yaml

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

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -564,53 +564,6 @@ pipelines:
564564
partition:
565565
mpp-format-int: '{image4k.layout[''boot''].partnum}'
566566
target: /boot
567-
- name: raw-qemu-image
568-
stages:
569-
- type: org.osbuild.copy
570-
inputs:
571-
tree:
572-
type: org.osbuild.tree
573-
origin: org.osbuild.pipeline
574-
references:
575-
- name:raw-image
576-
options:
577-
paths:
578-
- from: input://tree/disk.img
579-
to: tree:///disk.img
580-
# Increase the size to the cloud image size
581-
- type: org.osbuild.truncate
582-
options:
583-
filename: disk.img
584-
size:
585-
mpp-format-string: "{cloud_image_size_mb * 1024 * 1024}"
586-
- type: org.osbuild.coreos.platform
587-
options:
588-
platform: qemu
589-
devices:
590-
disk:
591-
type: org.osbuild.loopback
592-
options:
593-
filename: disk.img
594-
partscan: true
595-
mounts:
596-
- name: root
597-
type: org.osbuild.xfs
598-
source: disk
599-
partition:
600-
mpp-format-int: '{image.layout[''root''].partnum}'
601-
target: /
602-
- name: ostree.deployment
603-
type: org.osbuild.ostree.deployment
604-
options:
605-
source: mount
606-
deployment:
607-
default: true
608-
- name: boot
609-
type: org.osbuild.ext4
610-
source: disk
611-
partition:
612-
mpp-format-int: '{image.layout[''boot''].partnum}'
613-
target: /boot
614567
- name: metal
615568
stages:
616569
- type: org.osbuild.copy
@@ -639,20 +592,5 @@ pipelines:
639592
- from: input://tree/disk.img
640593
to:
641594
mpp-format-string: 'tree:///{filename}'
642-
- name: qemu
643-
stages:
644-
- type: org.osbuild.qemu
645-
inputs:
646-
image:
647-
type: org.osbuild.files
648-
origin: org.osbuild.pipeline
649-
references:
650-
name:raw-qemu-image:
651-
file: disk.img
652-
options:
653-
filename:
654-
mpp-format-string: '{filename}'
655-
format:
656-
type: qcow2
657-
compression: false
658-
compat: '1.1'
595+
- mpp-import-pipelines:
596+
path: platform.qemu.ipp.yaml

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

Lines changed: 2 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -556,80 +556,6 @@ pipelines:
556556
partition:
557557
mpp-format-int: '{image4k.layout[''boot''].partnum}'
558558
target: /boot
559-
- name: raw-qemu-image
560-
stages:
561-
- type: org.osbuild.copy
562-
inputs:
563-
tree:
564-
type: org.osbuild.tree
565-
origin: org.osbuild.pipeline
566-
references:
567-
- name:raw-image
568-
options:
569-
paths:
570-
- from: input://tree/disk.img
571-
to: tree:///disk.img
572-
# Increase the size to the cloud image size
573-
- type: org.osbuild.truncate
574-
options:
575-
filename: disk.img
576-
size:
577-
mpp-format-string: "{cloud_image_size_mb * 1024 * 1024}"
578-
- type: org.osbuild.coreos.platform
579-
options:
580-
platform: qemu
581-
devices:
582-
disk:
583-
type: org.osbuild.loopback
584-
options:
585-
filename: disk.img
586-
partscan: true
587-
mounts:
588-
- name: root
589-
type: org.osbuild.xfs
590-
source: disk
591-
partition:
592-
mpp-format-int: '{image.layout[''root''].partnum}'
593-
target: /
594-
- name: ostree.deployment
595-
type: org.osbuild.ostree.deployment
596-
options:
597-
source: mount
598-
deployment:
599-
default: true
600-
- name: boot
601-
type: org.osbuild.ext4
602-
source: disk
603-
partition:
604-
mpp-format-int: '{image.layout[''boot''].partnum}'
605-
target: /boot
606-
# Must run after the coreos.platform stage, which sets kernel arguments
607-
- type: org.osbuild.zipl.inst
608-
options:
609-
kernel: "1"
610-
kernel_opts_append:
611-
- ignition.firstboot
612-
location:
613-
mpp-format-int: '{image.layout[''boot''].start}'
614-
devices:
615-
disk:
616-
type: org.osbuild.loopback
617-
options:
618-
filename: disk.img
619-
partscan: true
620-
mounts:
621-
- name: root
622-
type: org.osbuild.xfs
623-
source: disk
624-
partition:
625-
mpp-format-int: '{image.layout[''root''].partnum}'
626-
target: /
627-
- name: boot
628-
type: org.osbuild.ext4
629-
source: disk
630-
partition:
631-
mpp-format-int: '{image.layout[''boot''].partnum}'
632-
target: /boot
633559
- name: metal
634560
stages:
635561
- type: org.osbuild.copy
@@ -658,20 +584,5 @@ pipelines:
658584
- from: input://tree/disk.img
659585
to:
660586
mpp-format-string: 'tree:///{filename}'
661-
- name: qemu
662-
stages:
663-
- type: org.osbuild.qemu
664-
inputs:
665-
image:
666-
type: org.osbuild.files
667-
origin: org.osbuild.pipeline
668-
references:
669-
name:raw-qemu-image:
670-
file: disk.img
671-
options:
672-
filename:
673-
mpp-format-string: '{filename}'
674-
format:
675-
type: qcow2
676-
compression: false
677-
compat: '1.1'
587+
- mpp-import-pipelines:
588+
path: platform.qemu.ipp.yaml

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

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -603,53 +603,6 @@ pipelines:
603603
partition:
604604
mpp-format-int: '{image4k.layout[''boot''].partnum}'
605605
target: /boot
606-
- name: raw-qemu-image
607-
stages:
608-
- type: org.osbuild.copy
609-
inputs:
610-
tree:
611-
type: org.osbuild.tree
612-
origin: org.osbuild.pipeline
613-
references:
614-
- name:raw-image
615-
options:
616-
paths:
617-
- from: input://tree/disk.img
618-
to: tree:///disk.img
619-
# Increase the size to the cloud image size
620-
- type: org.osbuild.truncate
621-
options:
622-
filename: disk.img
623-
size:
624-
mpp-format-string: "{cloud_image_size_mb * 1024 * 1024}"
625-
- type: org.osbuild.coreos.platform
626-
options:
627-
platform: qemu
628-
devices:
629-
disk:
630-
type: org.osbuild.loopback
631-
options:
632-
filename: disk.img
633-
partscan: true
634-
mounts:
635-
- name: root
636-
type: org.osbuild.xfs
637-
source: disk
638-
partition:
639-
mpp-format-int: '{image.layout[''root''].partnum}'
640-
target: /
641-
- name: ostree.deployment
642-
type: org.osbuild.ostree.deployment
643-
options:
644-
source: mount
645-
deployment:
646-
default: true
647-
- name: boot
648-
type: org.osbuild.ext4
649-
source: disk
650-
partition:
651-
mpp-format-int: '{image.layout[''boot''].partnum}'
652-
target: /boot
653606
- name: metal
654607
stages:
655608
- type: org.osbuild.copy
@@ -678,26 +631,11 @@ pipelines:
678631
- from: input://tree/disk.img
679632
to:
680633
mpp-format-string: 'tree:///{filename}'
681-
- name: qemu
682-
stages:
683-
- type: org.osbuild.qemu
684-
inputs:
685-
image:
686-
type: org.osbuild.files
687-
origin: org.osbuild.pipeline
688-
references:
689-
name:raw-qemu-image:
690-
file: disk.img
691-
options:
692-
filename:
693-
mpp-format-string: '{filename}'
694-
format:
695-
type: qcow2
696-
compression: false
697-
compat: '1.1'
698634
- mpp-import-pipelines:
699635
path: platform.applehv.ipp.yaml
700636
- mpp-import-pipelines:
701637
path: platform.gcp.ipp.yaml
702638
- mpp-import-pipelines:
703639
path: platform.hyperv.ipp.yaml
640+
- mpp-import-pipelines:
641+
path: platform.qemu.ipp.yaml

0 commit comments

Comments
 (0)