Greetings
Guys could some one with more experience than me please check this script.
this is the first part of it anyway; this part is supposed to install the new kernel and kernel src rpm, build the kernel sources as per the realease notes, don't worry about the arch here as this is for a batch of matching machines. I would like to work out how to do it for specific kernels but will get to that later. please just check that this is what needs doing for the kernel source tree to be built
#!/bin/sh" echo "Starting the update process"
#set the current directory variable updatedir=$(pwd)
#install new kernel rpm -Uvh $updatedir/kernel-2.6.9-1.681_FC3.i686.rpm
This is a bad idea to start with. You should "install" new kernels rather than "upgrade" them, so that the current kernel doesn't get deleted.
rpm -ivh $updatedir/kernel-2.6.9-1.681_FC3.i686.rpm
#Install kernel source rpm -Uvh $updatedir/kernel-2.6.9-1.681_FC3.src.rpm
#build the source tree
cd /usr/src/redhat/SPECS/
rpmbuild -v -v -bp --target=`uname -m` kernel-2.6.spec
cp -f /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/configs/kernel-2.6.9-i686.config /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/.config
cd $updatedir
echo "Your New Kernel and its Source are installed ;)" #Done
Looks reasonable for a starting point.
Paul.