PDA

View Full Version : Kernel upgrade


napta2k
2004-06-26, 12:18 PM
Ok, I've just built Linux 2.4.26-grsec sucessfully, I'm abit worried about installing a new kernel on a box with grub though, especially with /boot on a seperate partition.

I've compiled the kernel the usual way, I copied the old config over, ran make oldconfig, checked it was all ok. Then make dep, make bzImage, and make modules (I've done this many times under a lilo enviroment). Then I had the idea to install grsecurity, so I downloaded & applied the patch, and rebuilt all the kernel.

Now all I need todo is install it, but obviously the last thing I need is downtime.

So I figure that I basicly place the kernel under /boot, then symlink /vmlinuz to it.

Then edit /boot/grub/menu.lst

and replace:

title Debian GNU/Linux, kernel 2.4.22
root (hd0,0)
kernel /vmlinuz-2.4.22 root=/dev/hda3 ro devfs=mount
savedefault

with:
title Debian GNU/Linux, kernel 2.4.26-grsec
root (hd0,0)
kernel /vmlinuz-2.4.26-grsec root=/dev/hda3 ro devfs=mount
savedefault

and then run grub-update.

Then reboot.

Is that correct?

Thanks

greyskull
2004-07-18, 07:16 AM
You should be fine with that, I'd give it a boot anyways. :) You might try checking out make-kpkg, and building the kernel the 'debian way'.

http://newbiedoc.sourceforge.net/system/kernel-pkg.html

Makes it all easier to manage in the long haul.. I was stubborn at first but finally gave in and never looked back.