Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488358 - sys-boot/grub-2 - add automatic boot fallback
Summary: sys-boot/grub-2 - add automatic boot fallback
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-17 13:35 UTC by Sven Schwyn (svoop)
Modified: 2014-01-06 10:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Schwyn (svoop) 2013-10-17 13:35:23 UTC
This is a feature request more than a bug, however, it is an important feature for Gentoo servers to which the maintainers have no physical access.

Say you install a new kernel and forget to compile in a crucial bit which renders the kernel unbootable, the server will hang upon reboot. The desired behaviour in such a situation would be an automatic reboot on kernel panics into another known-to-work kernel.

There's a short howto in the forum (https://forums.gentoo.org/viewtopic-t-928972.html), however, it's of little use unless you plan to maintain grub.cfg manually.

A solution which works with grub.cfg generated by grub2-mkconfig would be a very useful. There's a similar feature documented for Ubuntu:

http://wiki.ubuntuusers.de/GRUB_2/Skripte#Fehler-in-Grub-abfangen

Like many users I don't have much knowledge of what grub-2 is like under the hood and would love to rely on what grub2-mkconfig generates.

I'd suggest such a feature to be enabled in /etc/default/grub and to disable it by default in order not to break existing installations.

Thanks for giving this a thought.

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2013-12-09 23:55:41 UTC
I am unlikely to implement this myself. I would suggest discussing it on the upstream development list.
Comment 2 Sven Schwyn (svoop) 2014-01-06 10:38:45 UTC
There's nothing to do upstream. Fallbacks can be configured, however, given the "one size fits all" approach of GRUB2, it's not an easy task - hence the idea to do it right once and then ship it with the ebuild.