-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support better interop with rpm-ostree #347
Comments
I definitely want to improve the experience here. I would say though what I think would be even more valuable though is being able to tell the story where e.g. Anyways though I think the challenge is that in practice anything doing stuff like package layering is going to need to in practice operate with rpm-ostree (or in general whatever higher level build tool is driving bootc) to inspect state. Shoveling the rpm-ostree status --json into bootc status just feels weird. (But still, not opposed) I can certainly imagine hooking things such that |
👍 Indeed, I think that's where we want to go eventually.
Yeah, unsure about the JSON bit myself too. It's definitely not meant to be as user-facing as the rest of the
Today, not much. But the idea in theory is that we'd be able to enjoy the feature sets of both tools (e.g. #100). |
FWIW, I think many people would migrate to the maintain a Containerfile approach, like having a Container in some directory locally and just use bootc to build the Containerfile (and deploy the locally built image) when we want to install/remove packages etc.:
one can take advantage of layering when you add a new package, just add a dnf install as a separate RUN command and we can just re-use the cached layers. People can do ":latest" if they are the type that like to upgrade as soon as possible, etc. In general dnf is a more complete rpm package managing tool. Maybe a best-effort generator could be useful to run on an rpm-ostree system to turn it into an approximate Containerfile (and show users the new way) or documentation on how to do it manually... People like the Containerfile format, the recent surge in popularity of Ollama is just one example of this: https://trends.google.com/trends/explore?date=today%205-y&q=Gpt4all,ollama,llamma.cpp&hl=en-GB I also feel this flow would make things easier for kernel developers also, kernel developers struggle with rpm-ostree. |
Closing in favour of coreos/rpm-ostree#4994 which proposes the solution opposite to the one proposed here, which is to have rpm-ostree call bootc. |
I got a notification on this since it was closed. On an rpm-ostree based Fedora Kinoite 40 machine, I recently upgraded via bootc using:
This worked pretty flawlessly. |
Currently, bootc cannot be used on systems managed by rpm-ostree as soon as any rpm-ostree client-side features are enabled (e.g. package layering or initramfs regeneration). This makes it harder to migrate systems from one to the other. The replacement for package layering is building container images, but that requires changing workflows and assuming new responsibilities. Also, initramfs regeneration and kernel argument manipulations still require rpm-ostree today.
But also for OS maintainers of rpm-ostree-based variants, trying to migrate users from one to the other would be much less dramatic if there were a window of time when both were supported. It would allow moving to bootc for updates, without breaking users currently using layering. Notably in upstream communities like FCOS, Silverblue, and IoT where rpm-ostree is today very popular. To a lesser degree in downstream systems like OCP, where we have more control on the implementation details and are already working on a container-native replacement to some of the features backed by rpm-ostree for now but we definitely have instances of people doing rpm-ostree-specific things behind the MCO's back today.
Implementation-wise, I think we could have a bit like
in the origin, which would tell
bootc switch
/bootc upgrade
to run the command in thedeployer
key instead ofostree_sysroot_stage_tree()
, passing the container ref as an argument (or the OSTree commit so that bootc is still in charge of the downloading and importing? basically force rpm-ostree to operate in offline mode). Andbootc status
would add under theBootEntry
object a new key likedeployer
containing the deployer command, anddeployerStatus
containing the output of the command which is expected to return JSON (but obviously displayed as YAML bybootc
). The idea being thatbootc status
still captures the rpm-ostree-specific state here.rpm-ostree could also learn to look for the
bootc
group in the origin andrpm-ostree upgrade
/rpm-ostree deploy
could tell the user to use bootc instead.(Obviously this is structured in a way that doesn't actually require bootc to know anything about rpm-ostree and which could in theory be reused for other things that could be driving ostree today.)
The text was updated successfully, but these errors were encountered: