On 11 Oct 2001, Jason L Tibbitts III wrote: > Let me start over: > > Does anyone have any advice on how to make kernel RPMS out of more recent > Linus or -ac kernels? The spec file is extremely complicated (two thousand > lines) and full of things that I do not need, so I was hoping to find a > simplified spec file that I could build up from, instead of trying to work > down from Red Hat's spec files. > > So nobody thinks that maybe I shouldn't be poking about in these things: > > I've been messing with linux since the 1.0 days. First installed it on a > 386sx-20. I understand kernel patching and can do limited amounts of patch > merging myself. I follow linux-kernel religiously, know about the VM > issues, understand the difference between linus and -ac kernels, know about > 2.4.11-dontuse and the needed parallel port patch to 2.4.12. > > What I don't yet understand is Red Hat's spec file, so I was hoping for > either some guidance or a simplified spec file. I can build kernels just > fine, but I was trying to do it the "Red Hat way" for the sake of > maintainability, since I need to apply these kernels to multiple machines > (if they actually solve my problems). > > - J< > > One way to do it may be to compile your new kernel, and modules, and then package the results in your own RPM. In other words, do not use RPM to build the kernel, just to package the finished product. You can use the way Netscape is packaged as an example.
I have done something like this in the past when compiling kernels for other machines - If you set INSTALL_PATH, INSTALL_MOD_PATH, and EXTRAVERSION, you can have the files installed to a local directory tree, and then package them up. I am not sure about the /sbin/installkernel script in 7.1, but I know I had to modify the script in 6.x to honor INSTALL_PATH. Mikkel -- Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list