LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   Rebuilding kernel script (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/rebuilding-kernel-script-50116/)

Q*Bert 03-16-2003 01:00 PM

Rebuilding kernel script
 
Here's a handy script to take the hassle out of rebuilding your kernel. It just simplifies the process, so that you don't have to remember how to do it. If anyone has anything else to add, please feel free.
cat > more /usr/src/linux/buildkernel
Code:

make mrproper &&
make menuconfig &&
make dep &&
echo "*************************************************"
echo ""
echo "FINISHED MAKING DEPS. MAKING COMPRESSED IMAGE NOW"
echo ""
echo "*************************************************"
make bzImage &&
echo "****************************************************"
echo ""
echo "FINISHED MAKING COMPRESSED IMAGE, MAKING MODULES NOW"
echo ""
echo "****************************************************"
make modules &&
echo "**********************************************"
echo ""
echo "FINISED MAKING MODULES, INSTALLING MODULES NOW"
echo ""
echo "**********************************************"
make modules_install &&
# if you have redhat 8.x, you can uncomment the next line to invoke module_upgrade
# /usr/sbin/module_upgrade
# this is optional - you can do this yourself. It copies the compressed bzImage to a file called newImage
cp /usr/src/linux/arch/i386/boot/bzImage /boot/newImage
# end

To terminate the script, press [Ctrl+D]. The permission must be changed to 755:

chmod 755 /usr/src/linux/buildkernel

and you're ready to go. You must of course edit the lilo.conf or grub.conf according to your setup.


All times are GMT -5. The time now is 04:30 AM.