Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Building your own bootc container image #755

Answered by miabbott
dainsco asked this question in Q&A
Discussion options

Is there an example or any documentation on how you can create your own bootc base container? What are the requirements of the distro that can be selected?

You must be logged in to vote

In the case of Fedora bootc base images, they are built from the repo here - https://gitlab.com/fedora/bootc/base-images

There is some light documentation in that repo about how they are built (and how you can build them yourself), though it could be improved.

I think a longer term goal should be to have an easier, more supportable way of building your own base images, but currently it appears that you need to do some tinkering.

Replies: 3 comments 3 replies

Comment options

In the case of Fedora bootc base images, they are built from the repo here - https://gitlab.com/fedora/bootc/base-images

There is some light documentation in that repo about how they are built (and how you can build them yourself), though it could be improved.

I think a longer term goal should be to have an easier, more supportable way of building your own base images, but currently it appears that you need to do some tinkering.

You must be logged in to vote
2 replies
Comment options

Thanks for the pointer, I think information is available just quite hard to find.

I there anything in the base distribution that is required by the bootc build? Would it be feasible to create a base image for RHEL 8 or is RHEL 9 required?

Comment options

@dainsco : did you find anything valuable, and did you prepare a custom bootc image based on some non bootc ready distro?

Answer selected by dainsco
Comment options

For yocto there is the meta-updater, it't does a few other things on top of just ostree adaption, linked to specific tooling related to Uptane, such as aktualizer(agent) and garage(server), but once you dig in to it you can see the rootfs modifcations it does to satisfy ostree's requirements, for example: https://github.com/advancedtelematic/meta-updater/blob/master/classes/image_types_ostree.bbclass#L25, of course there are more things with the kernel, kernel arguments, initramfs etc.

Would like to see some guidance related to bringing the plain ostree adaption to include adapting to the full bootc image requirements.

You must be logged in to vote
1 reply
Comment options

Remembered some blog post related to adapting your os to ostree and tried to find it again:
https://community.sap.com/t5/open-source-blogs/garden-linux-fellowship-retrospective/ba-p/13579463

Comment options

Look at https://github.com/bootcrew for a number of distros(currently 10) adapted to and packaged as bootc images

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /