OpenVZ Forum


Home » General » Support » Config a custom Kernel from the given src.rpm
Config a custom Kernel from the given src.rpm [message #3008] Sat, 06 May 2006 14:17 Go to next message
ronaldsh is currently offline  ronaldsh
Messages: 5
Registered: April 2006
Junior Member
I have D/L the source rpm so as the kernel.spec. And here are the steps i did.

1) Install the source rpm with "rpm -ivh"
2) goto /usr/src/redhat/SPECS , and run "rpmbuild -bp --target=i686 kernel.spec"
3) goto /usr/src/redhat/BUILD , copied the default config as .config
4) run "make menuconfig" and made those changes i want and save the .config
5) goto /usr/src/redhat/SPECS, run "rpmbuild -ba --target=i686 kernel.spec"

However, I found that during the rebuild, the .config file is REPLACED BACK with the original one after the kernel patching. Is that I had the wrong steps?
Re: Config a custom Kernel from the given src.rpm [message #3009 is a reply to message #3008] Sat, 06 May 2006 15:59 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

this is how RPM build works.
you need to change one of source config files in /usr/src/redhat/SOURCES/*.config.ovz


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: vzmigrate misses vpsid.start, .stop, .mount, .umount
Next Topic: Firewall on boot
Goto Forum:
  


Current Time: Wed Aug 07 22:16:03 GMT 2024

Total time taken to generate the page: 0.02933 seconds