Page 1 of 1

does the patched kernel need a initrd in order to work?

PostPosted: Fri Mar 10, 2006 12:46 pm
by jerem
hello

i tried to install a new kernel 2.4.32 patched with grsec 2.4.32

on a sarge debian distro with kernel version 2.4.27.

after having read and applied the quick start manual:

if i do not make an initrd.img-grsec2.4.32

grub can't find the patched kernel at (hd0,0)

if i make an initrd

there is a Oops 0002

kernel panic attempted to kill idle task

thanks

ps:sorry i m a french student who does not write english very well

Re: does the patched kernel need a initrd in order to work?

PostPosted: Sat Mar 11, 2006 3:58 pm
by Hue-Bond
jerem wrote:if i do not make an initrd.img-grsec2.4.32

grub can't find the patched kernel at (hd0,0)


It seems you're using Debian's facilities for compiling your kernel, aren't you? If so, try compiling by hand, that is:

Code: Select all
make menuconfig    ## you've already done this
make bzImage modules modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-blah
cp System.map /boot/System.map-blah
$EDITOR /boot/grub/menu.lst
reboot


Of course, you can turn initrd on or off if you want.

PostPosted: Mon Mar 13, 2006 9:27 am
by jerem
thanks!

i must
make dep
too(before make bzImage)?

PostPosted: Mon Mar 13, 2006 12:28 pm
by Hue-Bond
jerem wrote:i must
make dep
too(before make bzImage)?


Not with 2.6. Try and see.