@@ -17,8 +17,6 @@ mpp-vars:
1717 efi_system_size_mb : 127
1818 se_size_mb : 200
1919 boot_size_mb : 384
20- root_size_mb :
21- mpp-format-int : $rootfs_size_mb
2220 boot_verity_size_mb : 128
2321 root_verity_size_mb : 256
2422 sector_size : 512
@@ -46,8 +44,6 @@ mpp-vars:
4644 # the host buildroot is the default if nothing is specified.
4745 # We're still defining it here in an attempt to be explicit.
4846 qemu_stage_buildroot : " "
49- # IBM Secure Execution
50- qemu_secex : $qemu_secex
5147mpp-define-images :
5248 - id : image
5349 sector_size :
@@ -83,40 +79,6 @@ mpp-define-images:
8379 - name : root
8480 type : 0FC63DAF-8483-4772-8E79-3D69D8477DE4
8581 partnum : 4
86- # Secure Execution image. It MUST contain same partitions as `image` plus 3 additional
87- - id : image_secex
88- sector_size :
89- mpp-format-int : " {sector_size}"
90- size :
91- mpp-format-string : " {metal_image_size_mb * 1024 * 1024}"
92- table :
93- uuid : 00000000-0000-4000-a000-000000000001
94- label : gpt
95- partitions :
96- - name : se
97- type : 0FC63DAF-8483-4772-8E79-3D69D8477DE4
98- partnum : 1
99- size :
100- mpp-format-int : " {se_size_mb * 1024 * 1024 / sector_size}"
101- - name : boot
102- type : 0FC63DAF-8483-4772-8E79-3D69D8477DE4
103- partnum : 3
104- size :
105- mpp-format-int : " {boot_size_mb * 1024 * 1024 / sector_size}"
106- - name : root
107- type : 0FC63DAF-8483-4772-8E79-3D69D8477DE4
108- partnum : 4
109- size :
110- mpp-format-int : " {root_size_mb * 1024 * 1024 / sector_size}"
111- - name : boothash
112- partnum : 5
113- size :
114- mpp-format-int : " {boot_verity_size_mb * 1024 * 1024 / sector_size}"
115- - name : roothash
116- type : B325BFBE-C7BE-4AB8-8357-139E652D2F6B
117- partnum : 6
118- size :
119- mpp-format-int : " {root_verity_size_mb * 1024 * 1024 / sector_size}"
12082pipelines :
12183 # If installing from container then let's pull the container file into a pipeline
12284 - name : oci-archive
@@ -196,13 +158,6 @@ pipelines:
196158 # filesystem by OSTree (boot -> .) that makes it so that /boot paths
197159 # will always work.
198160 bootprefix : true
199- # If on s390x with secex then mkdir for filesytem labeled `se`, where `sdboot` image gets stored
200- - mpp-if : qemu_secex != ''
201- then :
202- type : org.osbuild.mkdir
203- options :
204- paths :
205- - path : /se
206161 - type : org.osbuild.ignition
207162 # Deploy via OSTree repo if specified, otherwise ociarchive or container.
208163 - mpp-if : ostree_repo != ''
@@ -530,131 +485,9 @@ pipelines:
530485 source : mount
531486 deployment :
532487 default : true
533- # IBM Secure Execution (secex) image has special layout
534- - name : raw-secex-image
535- build :
536- mpp-format-string : ' {buildroot}'
537- stages :
538- - type : org.osbuild.truncate
539- options :
540- filename : disk.img
541- size :
542- mpp-format-string : ' {image_secex.size}'
543- - type : org.osbuild.sfdisk
544- devices :
545- device :
546- type : org.osbuild.loopback
547- options :
548- filename : disk.img
549- options :
550- mpp-format-json : ' {image_secex.layout}'
551- - type : org.osbuild.mkfs.ext4
552- devices :
553- device :
554- type : org.osbuild.loopback
555- options :
556- filename : disk.img
557- start :
558- mpp-format-int : ' {image_secex.layout['' se'' ].start}'
559- size :
560- mpp-format-int : ' {image_secex.layout['' se'' ].size}'
561- lock : true
562- options :
563- uuid : random
564- label :
565- mpp-format-string : ' {sd_fs_label}'
566- - type : org.osbuild.mkfs.ext4
567- devices :
568- device :
569- type : org.osbuild.loopback
570- options :
571- filename : disk.img
572- start :
573- mpp-format-int : ' {image_secex.layout['' boot'' ].start}'
574- size :
575- mpp-format-int : ' {image_secex.layout['' boot'' ].size}'
576- lock : true
577- options :
578- uuid :
579- mpp-format-string : ' {boot_fs_uuid}'
580- label :
581- mpp-format-string : ' {boot_fs_label}'
582- # Set manually the metadata_csum_seed ext4 option otherwise changing the
583- # filesystem UUID while it's mounted doesn't work. Can remove this when
584- # metadata_csum_seed is default in RHEL, which can be checked by looking
585- # in /etc/mke2fs.conf.
586- metadata_csum_seed : true
587- - type : org.osbuild.mkfs.xfs
588- devices :
589- device :
590- type : org.osbuild.loopback
591- options :
592- filename : disk.img
593- start :
594- mpp-format-int : ' {image_secex.layout['' root'' ].start}'
595- size :
596- mpp-format-int : ' {image_secex.layout['' root'' ].size}'
597- lock : true
598- options :
599- uuid :
600- mpp-format-string : ' {root_fs_uuid}'
601- label :
602- mpp-format-string : ' {root_fs_label}'
603- - type : org.osbuild.copy
604- inputs :
605- tree :
606- type : org.osbuild.tree
607- origin : org.osbuild.pipeline
608- references :
609- - name:tree
610- options :
611- paths :
612- - from : input://tree/
613- to : mount://root/
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_secex.layout['' root'' ].partnum}'
626- target : /
627- - name : boot
628- type : org.osbuild.ext4
629- source : disk
630- partition :
631- mpp-format-int : ' {image_secex.layout['' boot'' ].partnum}'
632- target : /boot
633- - type : org.osbuild.chattr
634- options :
635- items :
636- mount://root/ :
637- immutable : true
638- devices :
639- disk :
640- type : org.osbuild.loopback
641- options :
642- filename : disk.img
643- partscan : true
644- mounts :
645- - name : root
646- type : org.osbuild.xfs
647- source : disk
648- partition :
649- mpp-format-int : ' {image_secex.layout['' root'' ].partnum}'
650- target : /
651- - name : ostree.deployment
652- type : org.osbuild.ostree.deployment
653- options :
654- source : mount
655- deployment :
656- default : true
657488 - mpp-import-pipelines :
658489 path : platform.metal.ipp.yaml
659490 - mpp-import-pipelines :
660491 path : platform.qemu.ipp.yaml
492+ - mpp-import-pipelines :
493+ path : platform.qemu-secex.ipp.yaml
0 commit comments