Skip to content

feat: select guest kernel from image label#181

Merged
sjmiller609 merged 2 commits intomainfrom
codex/image-kernel-version-label
Mar 31, 2026
Merged

feat: select guest kernel from image label#181
sjmiller609 merged 2 commits intomainfrom
codex/image-kernel-version-label

Conversation

@sjmiller609
Copy link
Copy Markdown
Collaborator

@sjmiller609 sjmiller609 commented Mar 31, 2026

Summary

  • persist OCI image labels in Hypeman image metadata
  • honor io.kernel.kernel-version during instance creation when it matches a supported kernel artifact
  • fail fast on unknown labeled kernels and cover the new behavior with focused tests

Testing

  • go test ./lib/images ./lib/system ./lib/instances -run 'TestParseKernelVersion|TestResolveCreateKernelVersion|TestDockerSaveTarballToOCILayoutRoundtrip|TestDockerSaveToOCILayoutCacheHit|TestExtractMetadataSucceedsOnBuildKitCache'

Note

Medium Risk
Changes instance boot configuration by allowing images to override the guest kernel via an OCI label, and expands system startup work to ensure all supported kernels are present; mistakes could cause instance creation/boot failures for labeled images.

Overview
Adds end-to-end support for persisting OCI image labels into Hypeman image metadata (extract from OCI config, store in metadata.json, and expose on images.Image).

During instance creation, honors io.kernel.kernel-version to select a supported guest kernel artifact (otherwise uses the default) and fails fast on unsupported values. System setup now ensures all supported kernel versions are downloaded/available, and new tests cover label extraction, kernel parsing, and kernel selection behavior.

Written by Cursor Bugbot for commit 32d4e43. This will update automatically on new commits. Configure here.

@sjmiller609 sjmiller609 marked this pull request as ready for review March 31, 2026 20:35
@sjmiller609 sjmiller609 requested a review from hiroTamada March 31, 2026 20:35
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@sjmiller609 sjmiller609 merged commit ae94713 into main Mar 31, 2026
6 checks passed
@sjmiller609 sjmiller609 deleted the codex/image-kernel-version-label branch March 31, 2026 20:55
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