Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
recompiled kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wizy
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2002
Posts: 133

PostPosted: Wed Jun 12, 2002 2:34 am    Post subject: recompiled kernel Reply with quote

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
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Wed Jun 12, 2002 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message
wizy
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2002
Posts: 133

PostPosted: Wed Jun 12, 2002 2:33 pm    Post subject: I didnt. Reply with quote

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
View user's profile Send private message
Trumpcard
n00b
n00b


Joined: 27 May 2002
Posts: 36

PostPosted: Wed Jun 12, 2002 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
wizy
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2002
Posts: 133

PostPosted: Wed Jun 12, 2002 2:55 pm    Post subject: Thanks for all the help Reply with quote

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
View user's profile Send private message
roto
n00b
n00b


Joined: 12 Jun 2002
Posts: 10
Location: Calgary, Canada

PostPosted: Wed Jun 12, 2002 9:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum