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

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

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

Postby jerem » Fri Mar 10, 2006 12:46 pm

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
jerem
 
Posts: 2
Joined: Fri Mar 10, 2006 12:33 pm

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

Postby Hue-Bond » Sat Mar 11, 2006 3:58 pm

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.
Hue-Bond
 
Posts: 34
Joined: Mon Dec 13, 2004 4:31 pm

Postby jerem » Mon Mar 13, 2006 9:27 am

thanks!

i must
make dep
too(before make bzImage)?
jerem
 
Posts: 2
Joined: Fri Mar 10, 2006 12:33 pm

Postby Hue-Bond » Mon Mar 13, 2006 12:28 pm

jerem wrote:i must
make dep
too(before make bzImage)?


Not with 2.6. Try and see.
Hue-Bond
 
Posts: 34
Joined: Mon Dec 13, 2004 4:31 pm


Return to grsecurity support