Skip to content
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

Add update hooks #517

Open
cgwalters opened this issue May 9, 2024 · 0 comments
Open

Add update hooks #517

cgwalters opened this issue May 9, 2024 · 0 comments
Labels
area/rpmostree enhancement New feature or request

Comments

@cgwalters
Copy link
Collaborator

cgwalters commented May 9, 2024

One thing that rpm-ostree has is that by default it displays the rpm database diff between two OS images.

I think we could add something like:

/usr/lib/bootc/diff-hooks.d

That we'd run each time a deployment changes. Then software like dnf could drop in a /usr/lib/bootc/hooks.d/dnf that would basically do what rpm-ostree db diff does; it would get passed two filesystem roots (as file descriptors or maybe easier by running as a container with /from and /to mount points for the two roots).

This would get us into a space where typing bootc upgrade would at least have that CLI sugar for admins.

But I'd probably say that we shouldn't try to scope creep this package/container integration too much beyond that; if one wants to do things with packages one would invoke apt/dnf directly, which should learn how to interact with bootc.

See e.g. coreos/rpm-ostree#4924 which is about codifying an API in rpm-ostree for these diffs. I don't think we should do anything like that here; the API for such a thing should live in a tool like apt/dnf which are about packages.

IOW there'd be e.g. dnf bootc diff perhaps. (But also, dnf podman diff <imageid> <imageid>!).

Basically a core tradeoff in rpm-ostree is that we didn't invest enough in the package-independent ostree tool, and I want bootc to feel first class for non-packaged content too, and deferring package things to package tools.

@cgwalters cgwalters added enhancement New feature or request area/rpmostree labels May 9, 2024
cgwalters pushed a commit to cgwalters/bootc that referenced this issue Nov 5, 2024
…json-1.0.105

build(deps): bump serde_json from 1.0.104 to 1.0.105
cgwalters pushed a commit to cgwalters/bootc that referenced this issue Nov 6, 2024
Cargo.toml: Update `release` profile, add `releaselto`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rpmostree enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant