After the latest update, my laptop has frozen twice within a couple of hours, and I had to force-power-off by holding the power button pressed. I used the grub menu to boot into the previous version. How can I “pin” this stable “40.20240518.0” configuration so that it does not get “erased”? I’m worried that if another update arrives, it will remove the olders and keep just the unstable “40.20240522.0” and whatever the new update is…
There’s already a newer update, but I now think that the process is:
install new update as a 3rd oprtion
remove the oldest option after a successful boot
I was worried that when 40.20240522.0 arrives, it would overwrite 40.20240518.0 (i.e. there are “two slots”, the active (booted) and inactive, update overwrites inactive. Clearly this is not the case.
This is very good advice. I’m now on the latest 40.20240523.0 image which so far works, but I’ve kept the 40.20240518.0 just in case. I’ll make sure to always keep a “known to work well” on my laptop image pinned just in case.
I have a further question. Ever since I pinned a version, it seems like I’m getting increasingly more images. Currently there are four (of which one is pinned):
The image with the 6.8.10 kernel is stable again, so I am no longer using the pinned 40.20240518.0 version. I just want to keep it around as per your advice (a just in case thing).
I guess my question is: why has this list grown to 4 items? Does the pin work like “keep everything starting from hereon”? I just want to pin that one image and then receive updates as per usual (I think there’s typically just 2 images: the “current” and the “update”).
Newbie here…
Is there documentation explaining pinning?
Will the pinned image always be booted or is it just saved?
In case of multiple pinned images how can I specify which one to boot?
Also I see a set-default command. Have not tried it but:
Usage:
ostree admin [OPTION…] --print-current-dir|COMMAND
Commands for managing a host system booted with ostree
Builtin "admin" Commands:
...
set-default Make deployment INDEX the default
So it seems you can set a pinned version as default if you want. Not sure if this “sticks” for when new versions arrive…
Thanks akarypid
May I ask one more. Right now I am booted with:
Image version: 41.20241117.3 (2024-11-17 15:51:27 UTC)
Does that xx.3 mean this is the third image released on 20241117?
Assuming so, it means someone has already fixed xx.1 that gave me problems coming out of sleep. Three versions in one day - impressive!
Thanks for telling me how to set a default. I wrote it down but given I reboot maybe once a week I don’t need it right now.