LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 10-09-2006, 02:18 PM   #1
j0hnd0e
Member
 
Registered: Nov 2005
Distribution: slamd64, slackware64
Posts: 34

Rep: Reputation: 15
compiling kernel on remote...


Hi

First of all, sorry if this question was asked before, but I can't find an answer for it.

I need to compile new kernel on remote machine, but I wan't to be sure it will boot.
Well I have compiled it once, and restarted the machine, but the Kernel was freezed on start, and I must do reboot manually.

So is there anyway, to get machine boots new kernel and in case something goes wrong it will do booting old stable kernel?! Silly question maybe, but I think it should be some solution for it.

On remote machine is Debian running on 2.4.32 and LILO.

thanks in advance

John
 
Old 10-09-2006, 02:29 PM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian-woody->(testing) ->lenny->squeeze32/64-> wheezy(32/64)
Posts: 1,290

Rep: Reputation: 67
Hi,

How can panic-ed kernel know that kernel itself is in panic?
 
Old 10-12-2006, 09:01 PM   #3
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Put this in image section for new kernel in lilo.conf
append="panic=15"
Then add a fallback=<command line>
fallback="Linux-old"

So it would look something like this:
Code:
image = /boot/vmlinuz
  root = /dev/hda5
  label = Linux
  initrd = /boot/initrd
  append="panic=15 reboot=warm"
  read-only
  fallback="Linux-old"
image = /boot/vmlinuz.old
  root = /dev/hda5
  label = Linux-old
  append="panic=15 reboot=warm"
  initrd = /boot/initrd.old
  read-only
NOTE: I have never tried this but it is documented in man lilo.conf

<edit> Yeah, it seems to work OK but you need to put this in a startup script somewhere:
lilo -R
That removes the fallback entry if you boot successfully. You could put it in /etc/rc.d/rc.local. If you don't have that line then every other time you boot you'll automatically boot into the fallback kernel.

Last edited by /bin/bash; 10-13-2006 at 06:56 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
distccd not compiling on remote host, forced to compile locally rarr Linux - Software 0 03-22-2006 07:10 AM
Remote Kernel Compiling - 2.2.16 to 2.4.32. thekillerbean Linux - General 3 02-28-2006 09:28 PM
compiling software from a remote CVS split500 Linux - Newbie 1 08-25-2005 04:02 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM
Compiling kernel for remote machine mr_mandrill Slackware 4 10-12-2002 07:18 AM


All times are GMT -5. The time now is 07:41 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration