Skip to content

main: bootc inspect#529

Open
supakeen wants to merge 1 commit into
osbuild:mainfrom
supakeen:bootc-inspect-subcommand
Open

main: bootc inspect#529
supakeen wants to merge 1 commit into
osbuild:mainfrom
supakeen:bootc-inspect-subcommand

Conversation

@supakeen
Copy link
Copy Markdown
Member

@supakeen supakeen commented May 26, 2026

Introduce a new bootc subcommand where we can grow various helpers for working with bootable containers.

The first one of these is the inspect subcommand, this allows a user to dump the struct we get from images to determine what image-builder thinks about the container.

Usage as follows:

€ sudo ./image-builder bootc inspect --format json --ref localhost/fedora-kinoite-iso:44 | jq .OSInfo.KernelInfo
{
  "Version": "7.0.10-200.fc44.x86_64",
  "HasAbootImg": false
}

As said in the documentation this is an internal structure but it's still useful. Perhaps in the future we can standardize it.

The intent is also to have an umbrella to add additional bootc subcommands to with us /eventually/ migrating away from --bootc-* arguments on build to having them on bootc convert though that's a very big IF/MAYBE/PERHAPS.

@supakeen supakeen force-pushed the bootc-inspect-subcommand branch 4 times, most recently from b0bc510 to b2dd625 Compare May 27, 2026 05:36
Introduce a new `bootc` subcommand where we can grow various helpers for
working with bootable containers.

The first one of these is the `inspect` subcommand, this allows a user
to dump the struct we get from `images` to determine what
`image-builder` thinks about the container.

Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
@supakeen supakeen force-pushed the bootc-inspect-subcommand branch from b2dd625 to a5664c4 Compare May 27, 2026 06:13
@supakeen supakeen marked this pull request as ready for review May 27, 2026 06:49
@supakeen supakeen requested a review from a team as a code owner May 27, 2026 06:49
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.

1 participant