LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-23-2004, 04:11 PM   #1
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
Question FC3 + SELinux + Vanilla kernel


I disabled SELinux during the installation, but my kernel compiled from vanilla sources hangs just at boot:

Quote:
audit(1101218294.716:0)initiated
I'm guessing this has something to do with SELinux in FC3, as I never encountered this in FC2.

SELinux is disabled, but where is this "audit of the kernel" coming from and how do I disable it?

Thanks!
 
Old 11-23-2004, 07:00 PM   #2
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Original Poster
Rep: Reputation: 30
Never mind...I found the problem...it was my ramdisk...I forgot to make one!
 
Old 11-23-2004, 07:41 PM   #3
jiman
LQ Newbie
 
Registered: May 2004
Location: athens
Distribution: slackware
Posts: 21

Rep: Reputation: 15
I have the same problem . What have you done to fix it?
 
Old 11-24-2004, 10:41 AM   #4
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Original Poster
Rep: Reputation: 30
1.) D/l the 2.6.9 kernel source from kernel.org
2.) Change to /usr/src and untar the kernel source
3.) Go into your new kernel source dir and do "#make menuconfig"...it will automatically pick-up the config from the /boot dir. From here, depending on your skill level, you can either customize your kernel (I always do), or you can just leave it as is and save & exit.
4.) Do the usual make bzImage modules modules_install
5.) Copy the new kernel to the /boot dir as vmlinuz-2.6.9
6.) Make a new initrd image: "#mkinitrd /boot/vmlinuz-2.6.9 2.6.9"
7.) Make an entry for your new kernel in your grub menu.lst

I'm actually more of a Slackware user, but I use FC on my company laptop. One of the biggest headaches for me with any of the FC releases is the kernel. My first task after a fresh install is always to build a fresh, slimmed-down kernel from source so that I can get on with installing the ATI driver, the Centrino wireless driver, and my VPN driver without any hitches.
 
Old 11-25-2004, 05:29 AM   #5
jiman
LQ Newbie
 
Registered: May 2004
Location: athens
Distribution: slackware
Posts: 21

Rep: Reputation: 15
My first distro was slackware and i can not compile a kernel in a different way. "make menuconfig " works only in /lib/modules/2.6.9.-1/source but i does not run "make" . I have downloaded RedHat Kernel-2.6.9-1.667.src.rpm but i can not install it in /usr/src and the compile kernel. Do you think that is better to install vanilla kernel that this one?
 
Old 11-25-2004, 07:43 AM   #6
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Original Poster
Rep: Reputation: 30
Trying to compile from the FC sources never worked for me, either. I always go with a complete vanilla source.

For the ATI users out there...glx crashes on the ATI driver with the 2.6.9 kernel. I'm currently building a 2.6.8.1 kernel to see if that cures the problem. I'll post my results here.
 
Old 11-25-2004, 05:04 PM   #7
jiman
LQ Newbie
 
Registered: May 2004
Location: athens
Distribution: slackware
Posts: 21

Rep: Reputation: 15
I finally done it. I run
make ;make modules_install ;
mv arch/x86_64/boot/bzImage /boot/vmlinuz-2.6.x
but do you know how i will make a new entry to grub?
 
Old 11-25-2004, 07:45 PM   #8
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Original Poster
Rep: Reputation: 30
Just copy one of the original lines for the stock kernel in the /boot/grub/menu.lst file modified to suit your vanilla kernel. Here's a snip of mine:
Code:
title Fedora Core (2.6.9-nitro4)
	root (hd0,1)
	kernel /vmlinuz-2.6.9-nitro4 ro root=/dev/hda6 vga=788
	initrd /initrd-2.6.9-nitro4.img
title Fedora Core (2.6.9)
	root (hd0,1)
	kernel /vmlinuz-2.6.9 ro root=/dev/hda6 vga=788
	initrd /initrd-2.6.9.img
title Fedora Core (2.6.9-1.667)
	root (hd0,1)
	kernel /vmlinuz-2.6.9-1.667 ro root=/dev/hda6 rhgb quiet
	initrd /initrd-2.6.9-1.667.img
(As you can see, I have 3 kernels on my system: nitro4, vanilla 2.6.9, and the stock kernel)

Don't forget to make your ramdisk:
Quote:
#mkinitrd /boot/initrd-2.6.9.img 2.6.9

Last edited by jymbo; 11-25-2004 at 07:50 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC3 SELinux problem richard.reyes Linux - Software 0 08-02-2005 12:21 PM
FC3, selinux filesystem? mebrelith Fedora 1 02-14-2005 08:22 PM
SELinux prevents adding users in FC3? Phaethar Fedora 0 12-27-2004 09:54 AM
FC3 SElinux 403 problem.... darkinsanity429 Linux - Networking 0 12-08-2004 02:45 PM
FC3 securitylevel - SELinux prob!?! overlord73 Fedora 2 11-25-2004 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration