3 # This script updates the kernel and modules from your
9 KERNEL=2.6.10-1.770_FC3
12 tar xfz dev.tar.gz -C roottree
19 # Update modules in root RAM disk
20 # Keep kernel directory structure
22 echo "Updating modules in root RAM disk"
23 rm -rf roottree/lib/modules
24 mkdir -p roottree/lib/modules
25 cp -af /lib/modules/$KERNEL/ roottree/lib/modules/
27 kernel="/boot/vmlinuz-$KERNEL"
28 echo "Coping $kernel to $TOPDIR/cdtree/boot/isolinux/vmlinuz"
29 cp -f $kernel $TOPDIR/cdtree/boot/isolinux/vmlinuz
31 echo "Could not find kernel. Update failed."
34 if [ -e /boot/map ] ; then
35 cp -f /boot/map $TOPDIR/cdtree/boot/isolinux/map