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

support configuring host to retain more than two deployments #577

Open
dustymabe opened this issue Jan 17, 2017 · 14 comments
Open

support configuring host to retain more than two deployments #577

dustymabe opened this issue Jan 17, 2017 · 14 comments
Labels
jira for syncing to jira kind/enhancement

Comments

@dustymabe
Copy link
Member

Right now when you upgrade you get the latest deployment and the previous one you were on so that you can rpm-ostree rollback. It would be nice if we could configure this behavior so that you can keep multiple deployments locally to switch back and forth to for debugging purposes.

AFAICT this is really only useful for debugging.

@dustymabe
Copy link
Member Author

related: ostreedev/ostree#1460

@dustymabe
Copy link
Member Author

is this taken care of by ostreedev/ostree#1464 or is there another PR needed?

@matthiasclasen
Copy link

See this story https://blogs.gnome.org/mclasen/2018/03/22/fedora-atomic-workstation-almost-fool-proof/ for some of the unintended consequences that can occur with the combination of package layering and a fixed number of deployments

@jlebon
Copy link
Member

jlebon commented Feb 4, 2020

See this story https://blogs.gnome.org/mclasen/2018/03/22/fedora-atomic-workstation-almost-fool-proof/ for some of the unintended consequences that can occur with the combination of package layering and a fixed number of deployments

FWIW, ostreedev/ostree#1960 will fix this.

@andreldmonteiro
Copy link

This is not only useful for debugging, for one I would like to customize the number of deployments.

@sandorex
Copy link

sandorex commented Nov 6, 2020

I hate to be that guy, but what is status of this issue?

@jlebon
Copy link
Member

jlebon commented Nov 9, 2020

I hate to be that guy, but what is status of this issue?

It's not being actively worked on AFAIK. Note that nowadays, there's ostree admin pin to prevent specific deployments from being GC'ed.

@xrishox
Copy link

xrishox commented Oct 6, 2022

i would also like to see support for this added. pinning definitely is nice, but there are times where i'm futzing around with stuff where i don't realize at the time i should be pinning a safe deployment and by the time i realized i've caused problems for myself i'm 5 deployments deep and the original safe deployment is long gone.

@brettgilio
Copy link

brettgilio commented Jul 2, 2023

i would also like to see support for this added. pinning definitely is nice, but there are times where i'm futzing around with stuff where i don't realize at the time i should be pinning a safe deployment and by the time i realized i've caused problems for myself i'm 5 deployments deep and the original safe deployment is long gone.

Adding on to this, it would be potentially nice for an option to not only retain a full set of deployments, but also have any unpinned deployments be GC'ed after an indicated time delay. For example, retain all deployments for 30 days, and any deployment at 30+n days in age would be hit by the GC unless it is marked as pinned.

@cig0
Copy link

cig0 commented Oct 24, 2023

I like the OSTree approach, running Universal Blue on my laptop and my battle station (Kinoite). However, having only one recovery deployment by default severely limits the ability to recover a system from an unwanted/mis-triggered change.

On the other hand, having to manually pin a deployment before a potentially disruptive upgrade (kernel upgrade, Wayland stack upgrade, etc.) creates significant friction when enabling automatic updates.

Allowing at least a bunch of deployments ready to boot from (i.e., openSUSE MicroOS keeps the last five snapshots by default) would significantly provide more substantial protection.

@awebeer256
Copy link

As another point of comparison, NixOS lets you just type in a number and that's how many it'll keep. It defaults to 100 if you use Grub and infinity if you use systemd-boot (source).

@waifairer
Copy link

I’d love to contribute this enhancement. Does anyone have any pointers for doing so?

@westurner
Copy link

westurner commented Sep 14, 2024

FWICS,

@westurner
Copy link

From #1239 (comment) :

Including in the GRUB label whether something is pinned or not, and at what pin location (e.g. pin 0, pin 1) would be useful.

I also agree with the OP that custom labels would be useful, but specifically for pinned deployments - e.g. 'New Install', 'Pre-rebasing 37 to 38', etc. Optional, of course, as some users wouldn't use this feature, but would make the GRUB entries much easier to navigate for those that do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira for syncing to jira kind/enhancement
Projects
None yet
Development

No branches or pull requests