I keep the following script called compile is /usr/src
#!/bin/bash
mv /root/.kernel /root/.kernel.old
mv /root/.kernel_modules /root/.kernel_modules.old
echo " ========= `date` ========= " > ~/.kernel
echo " ========= `date` ========= " > ~/.kernel_modules
echo "###########" >> ~/.kernel
echo "# makedep #" >> ~/.kernel
echo "###########" >> ~/.kernel
make dep 2>&1|tee -a ~/.kernel
echo "##############" >> ~/.kernel
echo "# make clean #" >> ~/.kernel
echo "##############" >> ~/.kernel
make clean 2>&1|tee -a ~/.kernel
echo "##############" >> ~/.kernel
echo "# make bzImage #" >> ~/.kernel
echo "##############" >> ~/.kernel
make bzImage 2>&1|tee -a ~/.kernel &
echo "################" >> ~/.kernel_modules
echo "# make modules #" >> ~/.kernel_modules
echo "################" >> ~/.kernel_modules
make modules 2>&1|tee -a ~/.kernel_modules
echo "########################" >> ~/.kernel_modules
echo "# make modules_install #" >> ~/.kernel_modules
echo "########################" >> ~/.kernel_modules
make modules_install 2>&1|tee -a ~/.kernel_modules
echo "#######" >> ~/.kernel
echo "# END #" >> ~/.kernel
echo "#######" >> ~/.kernel
echo "#######" >> ~/.kernel_modules
echo "# END #" >> ~/.kernel_modules
echo "#######" >> ~/.kernel_modules
It's ugly and primitive but it works. Just configure your kernel and then
run this. Afterwards, copy the new kernel and the System.map to /boot, add
a lilo entry, run lilo and then init 6. Easy peasy.
--
-Time flies like the wind. Fruit flies like a banana. [EMAIL PROTECTED]
-Stranger things have happened but none stranger than this. Steven W. Orr-
Does your driver's license say Organ Donor?Black holes are where God \
-------divided by zero. Listen to me! We are all individuals!---------
On Tue, 2 May 2000 [EMAIL PROTECTED] wrote:
=>Is there a doc that tells the proper way to upgrade the kernel. I've never done
=>this before but would like to as safely as possible.
=>
=>TIA
=>Steve
=>
=>------------------------------
=>
On Tue, 2 May 2000, Hal Burgiss wrote:
=>On Tue, May 02, 2000 at 07:08:20PM -0400, [EMAIL PROTECTED]
=>wrote:
=>> Is there a doc that tells the proper way to upgrade the kernel. I've
=>> never done this before but would like to as safely as possible.
=>
=>If you mean by RPM, this is on RH's website. Go to
=>www.redhat.com/support (IIRC) and fish around. There is a HOWTO there
=>somewhere.
=>
=>The key steps are:
=>
=> rpm -ivv <kernel>.rpm (note the 'i', do not use '-U')
=>
=> Use text editor and edit /etc/lilo.conf, and add a new stanza for the
=>new kernel. Make sure to leave at least one, known good kernel -- just
=>in case.
=>
=> Run 'lilo -v', and watch for sneaky little error messages.
=>
=> Reboot.
=>
=>
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.