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

build_sysext: enable build of OEM images for releases #1682

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

t-lo
Copy link
Member

@t-lo t-lo commented Feb 20, 2024

This one-line change enables building OEM images from releases without rebuilding all board packages.

It adds an option to the emerge command in build_sysext that allows emerge to download binary packages. Since we publish binpkgs for each release, the change allows users to build OEM images based on the generic OS image and sysext squashfs of a release.

Without this change, OEM builds require a full OS packages build locally, even for releases.

Testing Done

Tested for the Azure OEM image. Cloned the SDK, checked out a release, downloaded generic image and sysext quashfs, ran image_to_vm.sh:

git clone https://github.com/flatcar/scripts.git
cd scripts
git checkout stable-3815.2.0
wget https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_image.bin.bz2
wget https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_image_sysext.squashfs
COREOS_OFFICIAL=1 ./run_sdk_container ./image_to_vm.sh --from=./ --to=./ --board=amd64-usr --getbinpkg --format=azure

Backport / cherry-pick

This change should be cherry-picked to all maintenance branches.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
@t-lo t-lo requested a review from a team February 20, 2024 16:52
Copy link

github-actions bot commented Feb 20, 2024

Copy link
Contributor

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

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

That's great, thanks!

@t-lo t-lo merged commit 691a57c into main Feb 21, 2024
7 checks passed
t-lo added a commit that referenced this pull request Feb 21, 2024
build_sysext: enable build of OEM images for releases
t-lo added a commit that referenced this pull request Feb 21, 2024
build_sysext: enable build of OEM images for releases
t-lo added a commit that referenced this pull request Feb 21, 2024
build_sysext: enable build of OEM images for releases
@t-lo
Copy link
Member Author

t-lo commented Feb 21, 2024

Merged and cherry-picked to Alpha 3874, Beta 3850, and Stable 3815. LTS (3510) doesn't have build_sysext so no cherry-pick for LTS.

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