Bootc Internals

how do you commit the current root in /sysroot/ostree again
26 Replies
tulip🌷
tulip🌷2w ago
cc @Conan Kudo (ニール・ゴンパ) @Zeglius @Robert
Cappy Ishihara
Cappy IshiharaOP2w ago
ok here then fuck it
Robert
Robert2w ago
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.
Cappy Ishihara
Cappy IshiharaOP2w ago
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?
Zeglius
Zeglius2w ago
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
Cappy Ishihara
Cappy IshiharaOP2w ago
LFS*
Zeglius
Zeglius2w ago
Wait wrong ping @tulip
MrToucan
MrToucan2w ago
@Zeglius hello! Have a nice day! 🙂
Robert
Robert2w ago
Nobody is really making their own base image from scratch. It's probably possible, but not well documented.
Cappy Ishihara
Cappy IshiharaOP2w ago
hrm,...
No description
Cappy Ishihara
Cappy IshiharaOP2w ago
yeah, im going by some random people who put arch in a bootc image
Zeglius
Zeglius2w ago
At some point we would need to know, whenever Colin kicks out ostree and adds debian/arch support
Cappy Ishihara
Cappy IshiharaOP2w ago
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
Cappy Ishihara
Cappy IshiharaOP2w ago
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
tulip🌷
tulip🌷2w ago
@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 done
Cappy Ishihara
Cappy IshiharaOP2w ago
no im just learning how bootc actually works in case anyone would want to build an entire bootc image from scratch
tulip🌷
tulip🌷2w ago
rpm-ostree compose rootfs chungus
Cappy Ishihara
Cappy IshiharaOP2w ago
thats RPM-specific
tulip🌷
tulip🌷2w ago
gotta check out the source code there
Cappy Ishihara
Cappy IshiharaOP2w ago
ok so apparently yeah thats pretty much it I guess
No description
Cappy Ishihara
Cappy IshiharaOP2w ago
straight up wrote something like this and it just works
No description
Zeglius
Zeglius2w ago
With just that? 👀
Cappy Ishihara
Cappy IshiharaOP2w ago
seems to lemme qemu this
Conan Kudo (ニール・ゴンパ)
that seems incomplete? like what about xattrs and everything else?
tulip🌷
tulip🌷2w ago
i dont think you need to xattr anything ostree should do it i dont know what else you need tho

Did you find this page helpful?