Skip to content

Add bootc container export --format=tar #1957

@cgwalters

Description

@cgwalters

This relates a bit to #898 - but it's for people who want to use bootc-oriented containers with e.g. the liveimg verb of Anaconda and similar things.

What I'm thinking here is we have bootc container export [--experimental] that is usable like this:

podman run --rm --mount=type=image,source=<image>,target=/target <image> bootc container export /target > output.tar` or so.

What does this do beyond just tar -cf - /target?

  • SELinux labeling as if it was a booted host
  • Possibly adjusting (for legacy compatibility) by writing the kernel into /boot in the tar stream instead of /usr/lib/modules

And maybe more things - but those two are important.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions