Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Restart to new kernel w/o changing bootloader? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Fri Mar 18, 2005 9:10 pm    Post subject: Restart to new kernel w/o changing bootloader? [SOLVED] Reply with quote

I want to try a new kernel remotely. I know that it may panic. If this happens, I want the computer to restart, and boot into the default, good kernel.

How can I "reboot" to a new kernel without starting from the bootloader? I want to boot the new kernel, while running. No settings need to be saved. From there, it would restart completely. It would be like a "warm reboot", starting at the point right after the bootloader loads the kernel.

I figured I would set my hardware watchdog for 5 minutes, then jump into the new kernel. If it panics, the watchdog will reset the computer, and the default, good kernel would load from the untouched grub.conf.

Any help where to look for this? It is like "remote development" of a server. Trying new kerns that may panic, without having to edit my bootloader script (grub.conf)

Thanks.
_________________
Get Serious - Get JAWA CZ


Last edited by petlab on Fri Mar 18, 2005 9:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
KsE
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 269
Location: St. Cloud, MN

PostPosted: Fri Mar 18, 2005 9:16 pm    Post subject: Reply with quote

If you're at the terminal, you can put it as the second on your list. When grub starts, select the second one. Then if it reboots, it'll load of the first one, which will be your good one.

Don't know how you could do that remotely though.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Mar 18, 2005 9:23 pm    Post subject: Reply with quote

The short answer is that you can't, unless you use UML or a virtual machine.

Or a boot loader that lets you boot with different options exactly once and then reverts back.

I don't know if one exists that can...
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Fri Mar 18, 2005 9:24 pm    Post subject: Reply with quote

https://www.redhat.com/archives/fedora-devel-list/2004-January/msg00270.html
'lilo -R' sets a one time default before you shutdown. That allows remote testing where you don't have access to the console at boot. If the kernel fails it can be rebooted automatically (or any lunk can hit reset) and it gets the old default next boot.

I don't want to use LILO, but this is one solution to my question.

[EDIT]GRUB VERSION available

:oops: RTFM, me! Yes, it can be done. Reading the docs helps :D

There are two parts to this:
1. Configure grub right (howto forthcoming on gentoo-wiki)
2 Make your watchdog reboot the computer ??? (working on it) Or get a manual reset.
This part is not so easy, when I reboot, grub can get the job done, but in case of a
panic, hmm. using "reboot" restarts the machine, which means having the watchdog
inactive. Need to boot without resetting the watchdog.
_________________
Get Serious - Get JAWA CZ
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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