LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-01-2011, 08:09 AM   #1
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 631

Rep: Reputation: 174Reputation: 174
I Want To Test Grub2 Fallback Parameter


Greetings:

I've compiled my own kernels since 2006 and I've had some scream and die on me, but not recently. It is my understanding that the grub2 fallback entry will boot an alternate kernel should the default kernel scream and die.

If this is the case, I want to build/compile a kernel that WILL scream and die so that grub has to use the fallback entry. While I have built kernels that will scream and die, it's always been an accident.

How do I do this intentionally?
Will messing with the initramfs do the trick?

PS: this is on a headless system, and I just wanted to verify that fallback does, indeed, work.
 
Old 05-01-2011, 08:31 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
To the bootloader, once control is passed to the kernel it's done. Whether the kernel functions correctly or not is immaterial at that point. A bootloader fallback is almost worthless, as it needs to be something that prevent control from being passed from grub/grub2 to the kernel. For example, it you rename the kernel file on disk (or its name in grub), the bootloader won't be able to load it, and so it should fallback. It pretty much just protects you against a typo if you are manually editing grub entries. With LiveCDs, it's not of much use.
 
1 members found this post helpful.
Old 05-01-2011, 10:13 AM   #3
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 631

Original Poster
Rep: Reputation: 174Reputation: 174
Thank you

macemoneta:

Thank you for clarifying the fallback entry for me.
If the system in question weren't headless, then it wouldn't be such an issue for me.
You also prevented me from doing something "damn foolish".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell getopts: opt w/ optional parameter is taking next opt as its parameter! GrapefruiTgirl Programming 22 10-27-2010 06:00 AM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
Interpretation required for '(none) dhcpd: Sending on Socket/fallback/fallback-net' ttomsant Linux - Newbie 0 04-07-2009 02:31 PM
Conditional (IF) test in bash sh script - presence of first parameter Critcho Linux - Newbie 6 10-01-2008 12:20 AM
linux bash - how to use a dynamic parameter in shell parameter expansion expression nickleus Linux - General 2 08-21-2006 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration