Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-10-2003, 08:12 PM   #1
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Rep: Reputation: 30
"temporary" kernel?

Hey. I'm using grub on a couple of redhat 7.2 boxes. My boxes are colocated far away from me, so when a kernel install goes bad... well I'm screwed! Is there any way to automatically revert back to a different kernel? Or is there any way to set grub to only boot that kernel once (and on the next reboot it reverts back to the original config)?

Any suggestions?

Old 03-10-2003, 09:01 PM   #2
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
I'm not sure if I understand the problem. Why not just keep a copy of your old, stable kernel on the machine, and simply modify your grub.conf file to add the new test kernel? Once you're satisfied the new kernel isn't going to break you, then get rid of the old kernel.
Old 03-10-2003, 09:05 PM   #3
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
hmm. that's quite a question u have. what i am thnking is for u to use a script that will check the kernel version after booting (by evaluating 'uname -r'). and if it is ur temporary kernel, it will then change the 'default' option in your grub.conf file to make it boot ur 'good' kernel. grub-install doesn't need to be re-run after making changes to grub.conf so the easies way i'm thinking is that you have two grub.conf files say, grub.conf.good and grub.conf.temp which ur script will copy to /boot/grub/grub.conf. 'am not good at scripting so u might ask somebody about it (check another LQ forum).

or, check the fallback option for grub. never tried using that before.
Old 03-11-2003, 12:30 AM   #4
Registered: Apr 2001
Location: Raleigh, NC
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 30
I do a lot of scripting, so that's what I was planning if all else failed.

But... there's a fallback option? I haven't seen that.... Wasn't in the man page, and I didn't find anything on the net. Does anyone else have more information on this?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 12:07 PM
"getaddrinfo failed: Temporary failure in name resolution" SammyK Linux - Networking 3 03-09-2005 11:43 AM
Configuring kernel: Impact of "Y" or "N" vs. "M" Mark_E_Wallace Linux - Newbie 2 02-22-2004 06:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:34 PM.

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