Skip to content

Commit 3a91ec2

Browse files
committed
osbuild: rename build pipeline to deployed-tree
We're using it as more than just a buildroot now. We're more just using it as a way to inspect and copy from or load configuration from in various places because the files are laid out in a plain directory structure as it would be in an OSTree deployment. Let's rename it to more appropriately reflect what it is, which might explain why we use it in various places.
1 parent 3d7af88 commit 3a91ec2

File tree

5 files changed

+70
-50
lines changed

5 files changed

+70
-50
lines changed

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

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mpp-vars:
3232
# the host (COSA) gets used as the buildroot there.
3333
buildroot:
3434
mpp-if: osname in ['rhcos', 'scos']
35-
then: "name:build"
35+
then: "name:deployed-tree"
3636
else: ""
3737
# For the qemu stages we'll use the host buildroot (COSA)
3838
# because we definitely don't include qemu-img in CoreOS. ""
@@ -109,12 +109,17 @@ pipelines:
109109
to: tree:///coreos.ociarchive
110110
else:
111111
type: org.osbuild.noop
112-
# Construct a buildroot here from the input container reference (either
113-
# ociarchive or registry/tag). Note that this is only used as a buildroot
114-
# on RHCOS (FCOS doesn't ship python), but it is used everywhere as
115-
# file_context input to the org.osbuild.selinux stages.
116-
# unless used somewhere later in the manifest.
117-
- name: build
112+
# Construct a tree here that is a representation of the filesystem
113+
# that you would see on a running OSTree system. i.e. instead of just
114+
# /ostree and /sysroot at the toplevel we see /usr/ /var/ /etc/ ... that
115+
# you would see inside an OSTree deployment. Having the plain files accessible
116+
# allows for this pipeline to be used as a buildroot for some stages
117+
# or as inputs for others (i.e. file_context input to the org.osbuild.selinux
118+
# stages). This pipeline isn't actually used for built artifacts but
119+
# to help during build.
120+
#
121+
# NOTE: this is only used as a buildroot on RHCOS (FCOS doesn't ship python).
122+
- name: deployed-tree
118123
stages:
119124
- mpp-if: ociarchive != ''
120125
then:
@@ -152,7 +157,7 @@ pipelines:
152157
type: org.osbuild.tree
153158
origin: org.osbuild.pipeline
154159
references:
155-
- name:build
160+
- name:deployed-tree
156161
- type: org.osbuild.ostree.init-fs
157162
- type: org.osbuild.ostree.os-init
158163
options:
@@ -366,7 +371,7 @@ pipelines:
366371
type: org.osbuild.tree
367372
origin: org.osbuild.pipeline
368373
references:
369-
- name:build
374+
- name:deployed-tree
370375
devices:
371376
disk:
372377
type: org.osbuild.loopback
@@ -389,7 +394,7 @@ pipelines:
389394
type: org.osbuild.tree
390395
origin: org.osbuild.pipeline
391396
references:
392-
- name:build
397+
- name:deployed-tree
393398
devices:
394399
disk:
395400
type: org.osbuild.loopback
@@ -618,7 +623,7 @@ pipelines:
618623
type: org.osbuild.tree
619624
origin: org.osbuild.pipeline
620625
references:
621-
- name:build
626+
- name:deployed-tree
622627
devices:
623628
disk:
624629
type: org.osbuild.loopback
@@ -643,7 +648,7 @@ pipelines:
643648
type: org.osbuild.tree
644649
origin: org.osbuild.pipeline
645650
references:
646-
- name:build
651+
- name:deployed-tree
647652
devices:
648653
disk:
649654
type: org.osbuild.loopback

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

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mpp-vars:
3232
# the host (COSA) gets used as the buildroot there.
3333
buildroot:
3434
mpp-if: osname in ['rhcos', 'scos']
35-
then: "name:build"
35+
then: "name:deployed-tree"
3636
else: ""
3737
# For the qemu stages we'll use the host buildroot (COSA)
3838
# because we definitely don't include qemu-img in CoreOS. ""
@@ -111,12 +111,17 @@ pipelines:
111111
to: tree:///coreos.ociarchive
112112
else:
113113
type: org.osbuild.noop
114-
# Construct a buildroot here from the input container reference (either
115-
# ociarchive or registry/tag). Note that this is only used as a buildroot
116-
# on RHCOS (FCOS doesn't ship python), but it is used everywhere as
117-
# file_context input to the org.osbuild.selinux stages.
118-
# unless used somewhere later in the manifest.
119-
- name: build
114+
# Construct a tree here that is a representation of the filesystem
115+
# that you would see on a running OSTree system. i.e. instead of just
116+
# /ostree and /sysroot at the toplevel we see /usr/ /var/ /etc/ ... that
117+
# you would see inside an OSTree deployment. Having the plain files accessible
118+
# allows for this pipeline to be used as a buildroot for some stages
119+
# or as inputs for others (i.e. file_context input to the org.osbuild.selinux
120+
# stages). This pipeline isn't actually used for built artifacts but
121+
# to help during build.
122+
#
123+
# NOTE: this is only used as a buildroot on RHCOS (FCOS doesn't ship python).
124+
- name: deployed-tree
120125
stages:
121126
- mpp-if: ociarchive != ''
122127
then:
@@ -154,7 +159,7 @@ pipelines:
154159
type: org.osbuild.tree
155160
origin: org.osbuild.pipeline
156161
references:
157-
- name:build
162+
- name:deployed-tree
158163
- type: org.osbuild.ostree.init-fs
159164
- type: org.osbuild.ostree.os-init
160165
options:
@@ -351,7 +356,7 @@ pipelines:
351356
type: org.osbuild.tree
352357
origin: org.osbuild.pipeline
353358
references:
354-
- name:build
359+
- name:deployed-tree
355360
devices:
356361
disk:
357362
type: org.osbuild.loopback
@@ -374,7 +379,7 @@ pipelines:
374379
type: org.osbuild.tree
375380
origin: org.osbuild.pipeline
376381
references:
377-
- name:build
382+
- name:deployed-tree
378383
devices:
379384
disk:
380385
type: org.osbuild.loopback
@@ -572,7 +577,7 @@ pipelines:
572577
type: org.osbuild.tree
573578
origin: org.osbuild.pipeline
574579
references:
575-
- name:build
580+
- name:deployed-tree
576581
devices:
577582
disk:
578583
type: org.osbuild.loopback
@@ -597,7 +602,7 @@ pipelines:
597602
type: org.osbuild.tree
598603
origin: org.osbuild.pipeline
599604
references:
600-
- name:build
605+
- name:deployed-tree
601606
devices:
602607
disk:
603608
type: org.osbuild.loopback

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

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ mpp-vars:
3636
# the host (COSA) gets used as the buildroot there.
3737
buildroot:
3838
mpp-if: osname in ['rhcos', 'scos']
39-
then: "name:build"
39+
then: "name:deployed-tree"
4040
else: ""
4141
# For the qemu stages we'll use the host buildroot (COSA)
4242
# because we definitely don't include qemu-img in CoreOS. ""
@@ -101,12 +101,17 @@ pipelines:
101101
to: tree:///coreos.ociarchive
102102
else:
103103
type: org.osbuild.noop
104-
# Construct a buildroot here from the input container reference (either
105-
# ociarchive or registry/tag). Note that this is only used as a buildroot
106-
# on RHCOS (FCOS doesn't ship python), but it is used everywhere as
107-
# file_context input to the org.osbuild.selinux stages.
108-
# unless used somewhere later in the manifest.
109-
- name: build
104+
# Construct a tree here that is a representation of the filesystem
105+
# that you would see on a running OSTree system. i.e. instead of just
106+
# /ostree and /sysroot at the toplevel we see /usr/ /var/ /etc/ ... that
107+
# you would see inside an OSTree deployment. Having the plain files accessible
108+
# allows for this pipeline to be used as a buildroot for some stages
109+
# or as inputs for others (i.e. file_context input to the org.osbuild.selinux
110+
# stages). This pipeline isn't actually used for built artifacts but
111+
# to help during build.
112+
#
113+
# NOTE: this is only used as a buildroot on RHCOS (FCOS doesn't ship python).
114+
- name: deployed-tree
110115
stages:
111116
- mpp-if: ociarchive != ''
112117
then:
@@ -144,7 +149,7 @@ pipelines:
144149
type: org.osbuild.tree
145150
origin: org.osbuild.pipeline
146151
references:
147-
- name:build
152+
- name:deployed-tree
148153
- type: org.osbuild.ostree.init-fs
149154
- type: org.osbuild.ostree.os-init
150155
options:
@@ -354,7 +359,7 @@ pipelines:
354359
type: org.osbuild.tree
355360
origin: org.osbuild.pipeline
356361
references:
357-
- name:build
362+
- name:deployed-tree
358363
devices:
359364
disk:
360365
type: org.osbuild.loopback
@@ -377,7 +382,7 @@ pipelines:
377382
type: org.osbuild.tree
378383
origin: org.osbuild.pipeline
379384
references:
380-
- name:build
385+
- name:deployed-tree
381386
devices:
382387
disk:
383388
type: org.osbuild.loopback
@@ -546,7 +551,7 @@ pipelines:
546551
type: org.osbuild.tree
547552
origin: org.osbuild.pipeline
548553
references:
549-
- name:build
554+
- name:deployed-tree
550555
devices:
551556
disk:
552557
type: org.osbuild.loopback
@@ -571,7 +576,7 @@ pipelines:
571576
type: org.osbuild.tree
572577
origin: org.osbuild.pipeline
573578
references:
574-
- name:build
579+
- name:deployed-tree
575580
devices:
576581
disk:
577582
type: org.osbuild.loopback

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

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mpp-vars:
3232
# the host (COSA) gets used as the buildroot there.
3333
buildroot:
3434
mpp-if: osname in ['rhcos', 'scos']
35-
then: "name:build"
35+
then: "name:deployed-tree"
3636
else: ""
3737
# For the qemu stages we'll use the host buildroot (COSA)
3838
# because we definitely don't include qemu-img in CoreOS. ""
@@ -111,12 +111,17 @@ pipelines:
111111
to: tree:///coreos.ociarchive
112112
else:
113113
type: org.osbuild.noop
114-
# Construct a buildroot here from the input container reference (either
115-
# ociarchive or registry/tag). Note that this is only used as a buildroot
116-
# on RHCOS (FCOS doesn't ship python), but it is used everywhere as
117-
# file_context input to the org.osbuild.selinux stages.
118-
# unless used somewhere later in the manifest.
119-
- name: build
114+
# Construct a tree here that is a representation of the filesystem
115+
# that you would see on a running OSTree system. i.e. instead of just
116+
# /ostree and /sysroot at the toplevel we see /usr/ /var/ /etc/ ... that
117+
# you would see inside an OSTree deployment. Having the plain files accessible
118+
# allows for this pipeline to be used as a buildroot for some stages
119+
# or as inputs for others (i.e. file_context input to the org.osbuild.selinux
120+
# stages). This pipeline isn't actually used for built artifacts but
121+
# to help during build.
122+
#
123+
# NOTE: this is only used as a buildroot on RHCOS (FCOS doesn't ship python).
124+
- name: deployed-tree
120125
stages:
121126
- mpp-if: ociarchive != ''
122127
then:
@@ -154,7 +159,7 @@ pipelines:
154159
type: org.osbuild.tree
155160
origin: org.osbuild.pipeline
156161
references:
157-
- name:build
162+
- name:deployed-tree
158163
- type: org.osbuild.ostree.init-fs
159164
- type: org.osbuild.ostree.os-init
160165
options:
@@ -368,7 +373,7 @@ pipelines:
368373
type: org.osbuild.tree
369374
origin: org.osbuild.pipeline
370375
references:
371-
- name:build
376+
- name:deployed-tree
372377
devices:
373378
disk:
374379
type: org.osbuild.loopback
@@ -391,7 +396,7 @@ pipelines:
391396
type: org.osbuild.tree
392397
origin: org.osbuild.pipeline
393398
references:
394-
- name:build
399+
- name:deployed-tree
395400
devices:
396401
disk:
397402
type: org.osbuild.loopback
@@ -622,7 +627,7 @@ pipelines:
622627
type: org.osbuild.tree
623628
origin: org.osbuild.pipeline
624629
references:
625-
- name:build
630+
- name:deployed-tree
626631
devices:
627632
disk:
628633
type: org.osbuild.loopback
@@ -647,7 +652,7 @@ pipelines:
647652
type: org.osbuild.tree
648653
origin: org.osbuild.pipeline
649654
references:
650-
- name:build
655+
- name:deployed-tree
651656
devices:
652657
disk:
653658
type: org.osbuild.loopback

src/osbuild-manifests/platform.qemu-secex.ipp.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pipelines:
142142
type: org.osbuild.tree
143143
origin: org.osbuild.pipeline
144144
references:
145-
- name:build
145+
- name:deployed-tree
146146
devices:
147147
disk:
148148
type: org.osbuild.loopback
@@ -165,7 +165,7 @@ pipelines:
165165
type: org.osbuild.tree
166166
origin: org.osbuild.pipeline
167167
references:
168-
- name:build
168+
- name:deployed-tree
169169
devices:
170170
disk:
171171
type: org.osbuild.loopback

0 commit comments

Comments
 (0)