Page History
...
- Get the kernel source. First create the directory structure, then get the source from the RPM. Create a
.rpmmacros
file to install the kernel source in our user dir.Code Block # cd $HOME # mkdir -p kernel/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} # cd kernel # echo '%_topdir %(echo $HOME)/kernel/rpmbuild' > ~/.rpmmacros
- Install the kernel source:
Code Block # rpm -i http://mirror.centos.org/centos/5.5/updates/SRPMS/kernel-2.6.18-194.32.1.el5.src.rpm 2>&1 | grep -v mockb
Note title Kernel versions RHEL periodically releases updates to the kernel. The Lustre Master branch tracks the most recent kernel from Red Hat. In the event that the link above is not completely up-to-date, you should visit the Red Hat source RPM download site or CentOS source RPM download site and manually ensure you are downloading the most recent kernel.
NOTE If you are performing this walk-thru on CentOS 5.6, the kernel source can be found here:
http://mirrorvault.centos.org/centos/5.6/os/SRPMS/kernel-2.6.18-238.el5.src.rpm
- Expand the source. Using rpmbuild will also apply CentOS patches.
Code Block # rpmbuild -bp --target=`uname -m` ~/kernel/rpmbuild/SPECS/kernel.spec
This will end with:Code Block ... + patch -p1 --fuzz=2 -s + echo 'Patch #20240 (xen-hvm-add-hvmop_get_time-hypercall.patch):' Patch #20240 (xen-hvm-add-hvmop_get_time-hypercall.patch): + patch -p1 --fuzz=2 -s + echo 'Patch #20241 (xen-fix-64-bit-pv-guest-user-mode-segv-crashing-host.patch):' Patch #20241 (xen-fix-64-bit-pv-guest-user-mode-segv-crashing-host.patch): + patch -p1 --fuzz=2 -s + exit 0
...
Overview
Content Tools