-
-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Use fallback mechanism in GRUB to automatically recover unbootable system #26332
Comments
Are there any updates on this issue, please? |
I havent' been working on this. But still think it would be nice to be able to use NixOS in a way similar to (Fedora) CoreOS. |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
This is still relevant |
I just ran into a situation where a wrong configuration broke the boot process. A fallback mechanism would be amazing! |
I marked this as stale due to inactivity. → More info |
This is still relevant. |
Somehow I end up with a non-bootable system semi-frequently (often messing with hardware or kernel options on my several nixos Raspberry Pis). This would be really nice (my Pi4 uses grub, so if grub is required it may still be possible). EDIT: Currently dealing with this with a remote headless Pi and |
Just want to leave a note here, this is from K900 in the Matrix chat:
So for anyone else interested in this, Grub is the wrong place to look. It also appears that some progress has been made already on this in #84204 |
Issue description
It would be nice if a machine broken configuration would automatically recover into an older generation.
I found that GRUB is supporting fallback which could be used to achieve this.
The machine would try to boot and if the boot fails for some reason it grub would start the previous generation. Other boot loaders probably have similar functionality.
This is especially useful on machines where you don't have access during the boot. For example on AWS I was unable to rollback after a miss configuration because the system couldn't mount the rootfs. A fallback mechanism like would have saved me 😉
The text was updated successfully, but these errors were encountered: