On Thu, 2007-08-30 at 07:31 -0600, Sadek, Abdel wrote:
> The patch that I have changes the /drivers/scsi/sg.c. When I apply the
> patch using the spec file through rpmbuild command, it creates a kernel
> header rpm under /usr/src/redhat/RPMS
> The command used: rpmbuild -ba SPECS/kernel-2.6.spec
> Now, do I need to install the rpm that was created for the change to
> take effect?
> Also, if I need to patch another system, can I just take the rpm and
> install it instead of repeating the patching procedure?

The headers rpm won't help you.

If your patching kernel source then you need to build the kernel
packages and install them on the machines that need them.

But your not familiar with this so I'm a bit concerned that you will not
get this quite right first time. You need to get this "all" working on a
test machine before you even think about how to deploy the change.

The reason your getting the headers package only could be that you need
to specify the target, see rpmbuild(8), generally the arch is all that's
needed. That also means you need a machine of the same architecture as
your target test machine to build the package or just use the test
machine.

You should also change the version string in the kernel-2.6.spec file so
that you can easily identify your customized kernel and have some idea
of what changes the kernel has.

Once you've built the kernel packages you will need to install the ones
that your test machine uses, "rpm -qa|grep kernel" will tell you this,
and then reboot the machine and possibly select (if it's not the
default) the altered kernel to boot. It's safest to install ("rpm -i")
these kernel packages rather than update ("rpm -U") the existing kernel
so that you can select the original working kernel at boot if there is a
problem.

> Thanks.
> Abdel...
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jarod Wilson
> Sent: Wednesday, August 29, 2007 7:57 PM
> To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
> Subject: Re: [rhelv5-list] Patching the RHEL 5.0 ia64 kernel
> 
> Sadek, Abdel wrote:
> > I am trying to apply a patch to a RHEL 5.0 ia64 system. Is there a 
> > procedure on how to do that?
> > 
> > Do I need the kernel source?
> 
> Uh, that depends on what exactly it is you're trying to patch... But if 
> you're planning to patch, say, an lsi scsi kernel module, then yeah, you
> 
> need the kernel source...
> 
> The kernel src.rpm's can be found on ftp.redhat.com as well as any 
> mirror that mirrors ftp.redhat.com.
> 

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to