build_sysext: enable build of OEM images for releases #1682
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This one-line change enables building OEM images from releases without rebuilding all board packages.
It adds an option to the
emerge
command inbuild_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.