Skip to content

Commit

Permalink
osbuild: use new host_as_buildroot var when configuring the buildroot
Browse files Browse the repository at this point in the history
This makes it a little more explicit.
  • Loading branch information
dustymabe committed Nov 19, 2024
1 parent fdadc1f commit 10260a4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 36 deletions.
19 changes: 10 additions & 9 deletions src/osbuild-manifests/coreos.osbuild.aarch64.mpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ mpp-vars:
boot_fs_label: boot
root_fs_uuid: 910678ff-f77e-4a7d-8d53-86f2ac47a823
root_fs_label: root
# Set the buildroot string to use for most operations here. We create
# the buildroot from the target OSTree contents so we have version
# matches. Unfortunately for FCOS there is no python so we can't
# really use FCOS as the buildroot so we'll set it to "" so that
# the host (COSA) gets used as the buildroot there.
buildroot:
mpp-if: osname in ['rhcos', 'scos']
then: "name:deployed-tree"
else: ""
# For some stages (i.e. the qemu stages) we'll use the host as
# the buildroot (i.e. COSA in most cases but sometimes just
# the actual HOST filesystem like in coreos/custom-coreos-disk-images).
Expand All @@ -43,6 +34,16 @@ mpp-vars:
# the host buildroot is the default if nothing is specified.
# We're still defining it here in an attempt to be explicit.
host_as_buildroot: ""
# Set the buildroot string to use for most operations here. We create
# the buildroot from the target OSTree contents so we have version
# matches. Unfortunately for FCOS there is no python so we can't
# really use FCOS as the buildroot so we'll use the host as the
# buildroot there.
buildroot:
mpp-if: osname in ['rhcos', 'scos']
then: "name:deployed-tree"
else:
mpp-format-string: '{host_as_buildroot}'
mpp-define-images:
- id: image
sector_size:
Expand Down
19 changes: 10 additions & 9 deletions src/osbuild-manifests/coreos.osbuild.ppc64le.mpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ mpp-vars:
boot_fs_label: boot
root_fs_uuid: 910678ff-f77e-4a7d-8d53-86f2ac47a823
root_fs_label: root
# Set the buildroot string to use for most operations here. We create
# the buildroot from the target OSTree contents so we have version
# matches. Unfortunately for FCOS there is no python so we can't
# really use FCOS as the buildroot so we'll set it to "" so that
# the host (COSA) gets used as the buildroot there.
buildroot:
mpp-if: osname in ['rhcos', 'scos']
then: "name:deployed-tree"
else: ""
# For some stages (i.e. the qemu stages) we'll use the host as
# the buildroot (i.e. COSA in most cases but sometimes just
# the actual HOST filesystem like in coreos/custom-coreos-disk-images).
Expand All @@ -43,6 +34,16 @@ mpp-vars:
# the host buildroot is the default if nothing is specified.
# We're still defining it here in an attempt to be explicit.
host_as_buildroot: ""
# Set the buildroot string to use for most operations here. We create
# the buildroot from the target OSTree contents so we have version
# matches. Unfortunately for FCOS there is no python so we can't
# really use FCOS as the buildroot so we'll use the host as the
# buildroot there.
buildroot:
mpp-if: osname in ['rhcos', 'scos']
then: "name:deployed-tree"
else:
mpp-format-string: '{host_as_buildroot}'
mpp-define-images:
- id: image
sector_size:
Expand Down
19 changes: 10 additions & 9 deletions src/osbuild-manifests/coreos.osbuild.s390x.mpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ mpp-vars:
boot_fs_label: boot
root_fs_uuid: 910678ff-f77e-4a7d-8d53-86f2ac47a823
root_fs_label: root
# Set the buildroot string to use for most operations here. We create
# the buildroot from the target OSTree contents so we have version
# matches. Unfortunately for FCOS there is no python so we can't
# really use FCOS as the buildroot so we'll set it to "" so that
# the host (COSA) gets used as the buildroot there.
buildroot:
mpp-if: osname in ['rhcos', 'scos']
then: "name:deployed-tree"
else: ""
# For some stages (i.e. the qemu stages) we'll use the host as
# the buildroot (i.e. COSA in most cases but sometimes just
# the actual HOST filesystem like in coreos/custom-coreos-disk-images).
Expand All @@ -47,6 +38,16 @@ mpp-vars:
# the host buildroot is the default if nothing is specified.
# We're still defining it here in an attempt to be explicit.
host_as_buildroot: ""
# Set the buildroot string to use for most operations here. We create
# the buildroot from the target OSTree contents so we have version
# matches. Unfortunately for FCOS there is no python so we can't
# really use FCOS as the buildroot so we'll use the host as the
# buildroot there.
buildroot:
mpp-if: osname in ['rhcos', 'scos']
then: "name:deployed-tree"
else:
mpp-format-string: '{host_as_buildroot}'
mpp-define-images:
- id: image
sector_size:
Expand Down
19 changes: 10 additions & 9 deletions src/osbuild-manifests/coreos.osbuild.x86_64.mpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ mpp-vars:
boot_fs_label: boot
root_fs_uuid: 910678ff-f77e-4a7d-8d53-86f2ac47a823
root_fs_label: root
# Set the buildroot string to use for most operations here. We create
# the buildroot from the target OSTree contents so we have version
# matches. Unfortunately for FCOS there is no python so we can't
# really use FCOS as the buildroot so we'll set it to "" so that
# the host (COSA) gets used as the buildroot there.
buildroot:
mpp-if: osname in ['rhcos', 'scos']
then: "name:deployed-tree"
else: ""
# For some stages (i.e. the qemu stages) we'll use the host as
# the buildroot (i.e. COSA in most cases but sometimes just
# the actual HOST filesystem like in coreos/custom-coreos-disk-images).
Expand All @@ -43,6 +34,16 @@ mpp-vars:
# the host buildroot is the default if nothing is specified.
# We're still defining it here in an attempt to be explicit.
host_as_buildroot: ""
# Set the buildroot string to use for most operations here. We create
# the buildroot from the target OSTree contents so we have version
# matches. Unfortunately for FCOS there is no python so we can't
# really use FCOS as the buildroot so we'll use the host as the
# buildroot there.
buildroot:
mpp-if: osname in ['rhcos', 'scos']
then: "name:deployed-tree"
else:
mpp-format-string: '{host_as_buildroot}'
mpp-define-images:
- id: image
sector_size:
Expand Down

0 comments on commit 10260a4

Please sign in to comment.