| View previous topic :: View next topic |
| Author |
Message |
wizy Tux's lil' helper

Joined: 26 May 2002 Posts: 133
|
Posted: Wed Jun 12, 2002 2:34 am Post subject: recompiled kernel |
|
|
I recompiled the kernel with the grsecurity mods, selected only the ones I wanted. I followed the instructions, did everything by the book, copied it over to /boot after backing up the current one, and rebooted.
My kernel doesnt seem to be doing any of the things that I turned on with grsecurity. And usually after adding grsecurity in uname -a, I can see -grsec on the kernel version. Whats wrong? |
|
| Back to top |
|
 |
lx Veteran


Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Wed Jun 12, 2002 7:58 am Post subject: |
|
|
Stating the obvious:
Did you mount /boot. Make sure you're using the right kernel. dmesg | less, the first line will show the date/time you compiled the kernel.
Cya lX. _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
| Back to top |
|
 |
wizy Tux's lil' helper

Joined: 26 May 2002 Posts: 133
|
Posted: Wed Jun 12, 2002 2:33 pm Post subject: I didnt. |
|
|
| I didnt mount it. It just was there with a bzImage file, so I did what the instructions said. I didnt mount anything. what do I need to do? |
|
| Back to top |
|
 |
Trumpcard n00b

Joined: 27 May 2002 Posts: 36
|
Posted: Wed Jun 12, 2002 2:42 pm Post subject: |
|
|
If you didnt mount the boot partition, you copied your bzImage file into the /boot directory, not the /boot filesystem.
Copy the bzImage back out somewhere outside of /boot, then, you need to mount the boot filesystem using a
mount /boot (if it's in your fstab) , if not,
mount /dev/hdaX /boot (where X is the partition number you used for the boot partition when you originally installed gentoo).
You can then just cd to /boot, mv the exisitng bzImage to bzImage.old or something, and copy in the new one. I'd recommend adding an option into your /boot/grub/menu.lst file so you can boot the old kernel name should you have problems with the new one.
Hope this helps! |
|
| Back to top |
|
 |
wizy Tux's lil' helper

Joined: 26 May 2002 Posts: 133
|
Posted: Wed Jun 12, 2002 2:55 pm Post subject: Thanks for all the help |
|
|
| I will give it all a try when I get home. It makes sense. I knew I had to do something else with the actual boot partition. This is just the first time I have recompiled my kernel in linux. You are looking at a mankdrake/redhat convert here. Im getting the hang of it though. |
|
| Back to top |
|
 |
roto n00b

Joined: 12 Jun 2002 Posts: 10 Location: Calgary, Canada
|
Posted: Wed Jun 12, 2002 9:14 pm Post subject: |
|
|
| When i tried out the grsecurity modules the first time i booted i get a tonne of messages pumped out at boot...dunno if thats supposed to happen..(guessing it is) |
|
| Back to top |
|
 |
|