Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osbuild: support metal4k; add aleph file stage #3675

Merged
merged 7 commits into from
Dec 4, 2023

Conversation

dustymabe
Copy link
Member

@dustymabe dustymabe commented Nov 30, 2023

and a few other misc items:

  • osbuild: set sysroot.readonly=true
  • create_disk: add version field to aleph file
  • osbuild: add aleph file stage
  • osbuild: support metal4k platform
  • osbuild: switch to mpp-define-images to allow for a list of defs
  • osbuild: drop id in partition definition
  • osbuild: add in patches for enabling 4k disk images
  • build.sh: freeze the osbuild version

jlebon
jlebon previously approved these changes Dec 4, 2023
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a rebase, but looks sane to me!

These are the patches from upstream PR:
Upstream osbuild/osbuild#1461

This commit also reworks a bit the patch_osbuild() function
to make it easier for us to apply patches from git in the future.
In git the code is all in the git repo whereas on a system the files
are in various directories under /usr, so the patches pulled from
git are hard to apply unless you do some musical chairs.
With osbuild/osbuild@e191dc1 we can
now drop specifying `id` and just specify `name`, which `id` will
inherit the value of.
This will allow us in the future to define and use more than one disk image
layout. Builds on top of osbuild/osbuild@2e1f6e2
This is a set of patches from a currently a WIP PR from upstream
in osbuild/osbuild#1475
In the osbuild aleph file work we decided to use `version:` instead
of `build:` here because our COSA build ID isn't exactly ties to the
version of the ostree commit and is essentially a COSA concept. While
we transition to osbuild let's just add a version field here too in
COSA and lazily set it to buildid, even if it's not 100% accurate.

Also, fix a test that checks the `.build` field from .coreos-aleph-version.json
We do this in create_disk today so let's set it in our
coreos.osbuild.mpp.yaml manifest too.
@dustymabe
Copy link
Member Author

rebased!

Copy link

openshift-ci bot commented Dec 4, 2023

@dustymabe: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/rhcos ff779bd link true /test rhcos

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@dustymabe
Copy link
Member Author

hmm. the CI failure shows:

 --- FAIL: ext.config.rebuild-selinux-policy (90.18s)
        harness.go:1262: kolet failed: : failed to acknowledge reboot: wait: remote command exited without exit status or exit signal 

But this should have nothing to do with that test.

@dustymabe
Copy link
Member Author

But this should have nothing to do with that test.

I'll skip.

@dustymabe dustymabe disabled auto-merge December 4, 2023 22:06
@dustymabe dustymabe merged commit 99df425 into coreos:main Dec 4, 2023
2 checks passed
@dustymabe dustymabe deleted the dusty-osbuild branch December 4, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants