Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB2 automatic fallback
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
xtz
Apprentice
Apprentice


Joined: 29 Oct 2007
Posts: 181
Location: Singapore

PostPosted: Sun Jan 19, 2014 2:11 pm    Post subject: GRUB2 automatic fallback Reply with quote

Couldn't find it in the forum or wiki :?
What I want to achieve is to automate the fallback process in GRUB2.
e.g. scenario:
- I have 1 kernels (no initrd)
- the 2 default menu entries in grub (1 + 1 recovery)
- I've I add a 3rd menu entry in /etc/grub.d/40_custom, which tries to boot a non-existent kernel. at the end I have 'set fallback=0', so it sets the fallback to the 1st menu entry
- GRUB_DEFAULT is set to the 3rd menu item (GRUB_DEFAULT=2)

Now, when the system tries to boot, it first tries the non-existent kernel and of course, errors with 'Press any key to continue...'.
When you press a key it tries the fallback entry, which of course works.
What I'm trying to avoid is pressing that button, e.g. automatically boot from the failback entry in case the default fails.
Back to top
View user's profile Send private message
hydrapolic
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2008
Posts: 126

PostPosted: Thu Jan 23, 2014 6:38 am    Post subject: Reply with quote

For simple cases, maybe this helps:
https://forums.gentoo.org/viewtopic-t-928972.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum