bake_flatcar_image.sh: Bake sysexts into Flatcar OS images #48
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 change introduces
bake_flatcar_image.sh
, a standalone script for creating Flatcar OS images with sysexts (from the bakery and other sources) included.The script will download a generic Flatcar OS image (version can be specified), copy local sysexts into root or OEM partitions, and create respective symlinks to
/etc/extensions
.By default, the script operates on local sysext files. However, the
--fetch
option may be specified to download sysext(s) from the latest Bakery release.Optionally, vendor images can be created. If requested, the script will use the Flatcar SDK corresponding to the OS image version to generate vendor images from the generic image.
NOTE that building vendor images requires flatcar/scripts#1682 . To test, apply https://github.com/flatcar/scripts/commit/28070022226970ff3e819516a60721d8648a0f23.diff right after the script checked out the
scripts
repo (can be done in parallel because the script will spend some time downloading SDK container and OS images before continuing).How to use
Run the script:
or
Then loopback-mount flatcar_production_image.bin (partition 9) to verify.
To build a bootable image, use
Testing done
root
andoem
partitions, booted and tested wasmtime.