Skip to content

flatcar: document sysext usage#1077

Open
kartikjoshi21 wants to merge 2 commits into
project-dalec:mainfrom
kartikjoshi21:kartikjoshi21/flatcar-docs-validation
Open

flatcar: document sysext usage#1077
kartikjoshi21 wants to merge 2 commits into
project-dalec:mainfrom
kartikjoshi21:kartikjoshi21/flatcar-docs-validation

Conversation

@kartikjoshi21

@kartikjoshi21 kartikjoshi21 commented Jun 3, 2026

Copy link
Copy Markdown
Member

Summary

  • document how to build and install Flatcar-compatible sysext images
  • add a Flatcar sysext example
  • add a dedicated Flatcar integration test suite

Validation

The integration test builds flatcar/testing/sysext, verifies the generated .raw image, extracts it with fsck.erofs, and validates its binary contents and Flatcar extension-release metadata.

It covers both default SYSEXT_LEVEL matching and VERSION_ID-pinned matching.

Note

This validates the artifact Flatcar consumes, but does not boot a Flatcar VM or run systemd-sysext merge on a live Flatcar host.

Add a Flatcar sysext example and document the build, install, and version-pinning workflow for flatcar/testing/sysext.

Add coverage that the default Flatcar target continues to use the Noble-backed worker path.

Signed-off-by: Kartik Joshi <karikjoshi21@gmail.com>
Copilot AI review requested due to automatic review settings June 3, 2026 11:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds Flatcar support to DALec’s system extension docs and examples, and validates the Flatcar default configuration via tests.

Changes:

  • Document Flatcar as a supported target and add a Flatcar system extensions guide section.
  • Add a Flatcar sysext example spec (flatcar-sysext.yml) demonstrating build + install workflow.
  • Add tests asserting Flatcar’s default base config and worker-target behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
website/docs/targets.md Lists the new flatcar target in the documentation.
website/docs/system-extensions.md Adds Flatcar-specific system extension instructions and build args.
targets/linux/flatcar/flatcar_test.go Adds unit tests to verify Flatcar default base/worker behavior.
docs/examples/flatcar-sysext.yml Provides an example Flatcar sysext spec used in docs.

Comment thread targets/linux/flatcar/flatcar_test.go Outdated
Comment on lines +25 to +27
if DefaultConfig.Base != ubuntu.NobleConfig {
t.Fatalf("expected default Flatcar base to be Noble")
}
Comment on lines +64 to +68
sudo mkdir -p /etc/extensions
sudo cp _out/flatcar-hello.raw /etc/extensions/flatcar-hello.raw
sudo systemd-sysext status
sudo systemd-sysext merge
flatcar-hello
Comment thread docs/examples/flatcar-sysext.yml Outdated
Signed-off-by: Kartik Joshi <karikjoshi21@gmail.com>
@kartikjoshi21 kartikjoshi21 force-pushed the kartikjoshi21/flatcar-docs-validation branch from 4ccf79f to b757279 Compare June 9, 2026 09:00
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