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

Automatically take an ostree snapshot before a major kernel update #236

Closed
castrojo opened this issue Feb 6, 2022 · 6 comments
Closed
Labels
enhancement New feature or request need-info Further information is requested stale Old issues that need an update upstream Issue reported, fixed or related to upstream projects

Comments

@castrojo
Copy link

castrojo commented Feb 6, 2022

Is your feature request related to a problem? Please describe.
A major kernel upgrade is a significant event (some hardware more significant than others). Sometimes I don't have the time to check when a major kernel update is coming because I'm not following fedora development or whatever, so it'd be nice to have an extra snapshot.

Describe the solution you'd like
It'd be nice to opt-in have an automatic ostree snapshot when a major release of the kernel is updated in Fedora and have it labelled as such. Ideally I never have to use it.

Describe alternatives you've considered
An alternative might be documentation on how one could set this up by hand, perhaps via a service unit or something to see how useful it is in the wild.

@travier
Copy link
Member

travier commented Feb 7, 2022

Fedora Silverblue is build from Fedora packages. All updates in Fedora are pushed to the testing repository first and then pushed to stable if they receive enough karma or two weeks passed.

For Fedora Silverblue, you can use the fedora:fedora/$releasever/$arch/testing/silverblue ref to preview those incoming updates.

If we were to provide another build of Silverblue with another kernel, who would build and maintain those kernels? Fedora is usually switching from one kernel to the next as support gets dropped upstream.

The current user story / workaround for those impacted by a kernel bug is to keep updating the system while overriding the kernel version to keep it at a working version while the bug is reported and fixed upstream.

@castrojo
Copy link
Author

castrojo commented Feb 7, 2022

If we were to provide another build of Silverblue with another kernel, who would build and maintain those kernels?

Oh sorry, I realized I am using the wrong terminology. I don't mean maintaining another kernel, I mean more like automatically pinning the previous deployment (with the old kernel) automatically as a checkpoint before I boot into a new kernel.

@travier
Copy link
Member

travier commented Feb 7, 2022

With rpm-ostree you usually have 2 deployments available so you can rollback to the previous one after an update if it breaks.

If we pin a specific deployment, then we need a way to signal / unpin it at some later time too.

@travier
Copy link
Member

travier commented Feb 14, 2022

I think you might be interested in coreos/rpm-ostree#577, which I wanted in the beginning too. Will try to make it happen.

@travier travier added enhancement New feature or request upstream Issue reported, fixed or related to upstream projects labels Aug 21, 2022
@xrishox
Copy link

xrishox commented Oct 6, 2022

would be nice to have it automatically pin on kernel upgrades. could be unpinned and replaced with a new pin when the next kernel upgrade is released.

@travier travier changed the title [RFE] Automatically take an ostree snapshot before a major kernel update Automatically take an ostree snapshot before a major kernel update Oct 6, 2022
@travier travier added need-info Further information is requested stale Old issues that need an update labels Oct 6, 2022
@travier
Copy link
Member

travier commented Jan 22, 2024

I'll close this issue in favor of the one in the Fedora Atomic Desktop issue tracker: https://gitlab.com/fedora/ostree/sig/-/issues/2

While they are not strictly the same issue, this is one likely to happen as part of that change.

@travier travier closed this as completed Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request need-info Further information is requested stale Old issues that need an update upstream Issue reported, fixed or related to upstream projects
Projects
None yet
Development

No branches or pull requests

3 participants