-
Notifications
You must be signed in to change notification settings - Fork 160
cli: Extend bootc container inspect with kernel info
#1873
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request extends bootc container inspect to include kernel information, which is a useful addition for tooling. The implementation involves refactoring UKI detection logic into a new kernel module, which improves code organization and modularity. The changes are well-tested, including integration tests for the new output fields, and the documentation has been updated accordingly. Overall, this is a solid contribution. I have a couple of minor suggestions for the new kernel module to improve robustness and make the code more idiomatic.
The container-inspect command previously only reported kernel arguments. Extend it to also report kernel information, including whether the image contains a traditional kernel or a Unified Kernel Image (UKI). This consolidates UKI detection logic previously in bootc_composefs::boot into a new kernel module that can find kernels via either the traditional /usr/lib/modules/<version>/vmlinuz path or UKI files in /boot/EFI/Linux/. The ContainerInspect output now includes a "kernel" field with version and unified (boolean) properties, enabling tooling to determine the boot method before installation. Assisted-by: OpenCode (Claude Opus 4.5) Signed-off-by: Colin Walters <walters@verbum.org>
4674ded to
b62a648
Compare
|
Failures seem valid: |
The container inspect command previously only supported JSON output. This extends it to support human-readable output (now the default) and YAML, matching the output format options available in other bootc commands like status. The --json flag provides backward compatibility for scripts that expect JSON output, while --format allows explicit selection of any supported format. Assisted-by: OpenCode (Sonnet 4) Signed-off-by: Colin Walters <walters@verbum.org>
b62a648 to
0428ac1
Compare
The container-inspect command previously only reported kernel arguments. Extend it to also report kernel information, including whether the image contains a traditional kernel or a Unified Kernel Image (UKI).
This consolidates UKI detection logic previously in bootc_composefs::boot into a new kernel module that can find kernels via either the traditional /usr/lib/modules//vmlinuz path or UKI files in /boot/EFI/Linux/.
The ContainerInspect output now includes a "kernel" field with version and unified (boolean) properties, enabling tooling to determine the boot method before installation.
Assisted-by: OpenCode (Claude Opus 4.5)