Bootc Internals
how do you commit the current root in /sysroot/ostree again
26 Replies
cc @Conan Kudo (ニール・ゴンパ) @Zeglius @Robert
ok
here then
fuck it
You shouldn't need to have that for bootc any more
https://bootc-dev.github.io/bootc/bootc-images.html#ostree-in-container
With bootc 1.1.3 or later, it is no longer required to have a /ostree directory present in the base image.
im just curious on bootc internals
how would one create a bootc image from scratch
do you still need to commit the whole sysroot as an ostree commit and cram that inside the image?
so, all you would need to do is simply just build a rootfs from scratch and bootc will figure out the rest?
Since not long ago the requirement for ostree container commit was gone, so I'm going to place a bet blindly: maybe bootc doesn't need the ostree repo in the container image at build time
@MrToucan rename thread to LTS bootc btw
LFS*
Wait wrong ping
@tulip
@Zeglius hello! Have a nice day! 🙂
Nobody is really making their own base image from scratch.
It's probably possible, but not well documented.
hrm,...

yeah, im going by some random people who put arch in a bootc image
At some point we would need to know, whenever Colin kicks out ostree and adds debian/arch support
also gonna look at how rhel makes their funny image mode RHEL
apparently that's just RHEL in bootc, not RHEL CoreOS
sounds redundant but whatever red hat
This is probably what they are using
https://gitlab.com/fedora/bootc/base-images/-/blob/main/bootc-base-imagectl?ref_type=heads
So
rpm-ostree container encapsulate
rpm-ostree
damn
hmm I wonder if you can just, make an ostree commit and then shove that back in the container
for this
funny xattr
@Cappy Ishihara if you wanna build ur own base image just clone
centos-bootc
and change all the centos stuff to fedora
then make cool treefiles and ur doneno im just learning how bootc actually works
in case anyone would want to build an entire bootc image from scratch
rpm-ostree compose rootfs
chungusthats RPM-specific
gotta check out the source code there
ok so apparently yeah thats pretty much it I guess

straight up wrote something like this and it just works

With just that? 👀
seems to
lemme qemu this
that seems incomplete? like what about xattrs and everything else?
i dont think you need to xattr anything
ostree should do it
i dont know what else you need tho