Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th July 2007, 18:15
markg85 markg85 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 18
Thanks: 0
Thanked 4 Times in 3 Posts
Default Real kernel compilation for fedora

Hey,

Falko has written this document: http://www.howtoforge.com/kernel_compilation_fedora
and i really like it but it's not the real fedora way.
with that documentation you still have to manually edit grub and you still have to do mkinitrd. So my request is a new document that does it exactly the fedora way so that you end with a kernel rpm that does the grub and mkinitrd for you.

i think it would be best to edit that document with something like: go to page # for manual stuff (mkinitrd, grub) or go to page # to create a kernel rpm (with mkinitrd and grub in it).

Mark.
Reply With Quote
Sponsored Links
  #2  
Old 5th July 2007, 14:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by markg85
with that documentation you still have to manually edit grub and you still have to do mkinitrd. So my request is a new document that does it exactly the fedora way so that you end with a kernel rpm that does the grub and mkinitrd for you.
Do you have some instructions how this works?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 5th July 2007, 14:54
markg85 markg85 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 18
Thanks: 0
Thanked 4 Times in 3 Posts
Default

actually i have just got it from a reply on the fedora-devel-list.

Here is sopme official documentation but i find that incomplete:
http://docs.fedoraproject.org/releas...sn-Kernel.html

The thing that one reply suggests is doing:
Quote:
It depends on what you want to do. Your question seemed to be: How do I
get "rpmbuild -ba kernel-2.6.spec" to produce kernel rpms. The answer
is:
rpmbuild -ba --target $(uname -m) kernel-2.6.spec

I should have made it clearer in my original reply that the
"--target...." was the only thing you needed to get from that page.

If you want to make modifications to the kernel spec file, then the rest
of that page becomes relevant.
where "that page" is your howto for the kernel compilation.

I think the best thing you can do is extract the rpm, than extract the kernel source than edit the kernel to your own wishes (make menuconfig) than save it and make the compressed archive again. than you can do:

rpmbuild -ba --target $(uname -m) kernel-2.6.spec

to make the kernel but be aware that some patches might overwrite your changes.
hope this helps
Reply With Quote
  #4  
Old 6th July 2007, 17:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

So if I understand you right, instead of

Code:
rpmbuild -bp --target=i686 kernel-2.6.spec
I'd run

Code:
rpmbuild -ba --target=i686 kernel-2.6.spec
and wouldn't have to worry about the Ramdisk and GRUB anymore? Is that the only difference?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th August 2007, 00:51
markg85 markg85 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 18
Thanks: 0
Thanked 4 Times in 3 Posts
 
Default

Sorry for the late reply.

Yes. if you do that than you don't have to worry about that ramdisk and grub. Compiling has to be done either way so better do it that way saves you time for when you want to install the kernel.
Reply With Quote
The Following User Says Thank You to markg85 For This Useful Post:
falko (16th August 2007)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
Xen 3.0.2 /3.0.3 | No Swap in DomU Merc HOWTO-Related Questions 10 27th March 2007 11:40
Howto resolve sudden server crashes? Possibly spamassassin or clamscan? linus General 3 1st February 2007 09:00
WG311v2 almost working with Edgy (w/o ndiswrapper) need help with the rest caudata Server Operation 11 13th November 2006 20:02
Questions about ubuntu ISP-Server Setup badgerbox76 HOWTO-Related Questions 15 5th March 2006 14:41


All times are GMT +2. The time now is 04:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.