3 # kernell install script
11 make prepare ||
exit 5
14 KERVER
=`make kernelrelease`
18 echo -n Build
'&' install kernel
"$KERVER" ' ?'
22 chown portage .
-R ||
exit 4
25 su portage
-c "make clean" ||
exit 6
28 su portage
-c "make prepare" ||
exit 7
31 su portage
-c "make all" ||
exit 8
33 echo make modules_install...
34 make modules_install ||
exit 10
36 echo mount
/boot with rw
37 mount
/boot
-o remount
,rw
39 cp -v .
/arch
/x86
/boot
/bzImage
"/boot/kernel-$KERVER" ||
exit 1
40 cp -v .
/System.map
"/boot/System.map-$KERVER" ||
exit 2
41 cp -v .
/.config
"/boot/Config-$KERVER" ||
exit 3
44 echo "" >> /boot
/grub
/grub.conf
45 echo "# ? & ?" >> /boot
/grub
/grub.conf
46 echo "title=Linux $KERVER" >> /boot
/grub
/grub.conf
47 echo "kernel" "/boot/kernel-$KERVER" "root=$ROOT" "ro" >> /boot
/grub
/grub.conf
48 echo "title=Linux $KERVER noresume" >> /boot
/grub
/grub.conf
49 echo "kernel" "/boot/kernel-$KERVER" "root=$ROOT" "ro" "noresume" "nox" >> /boot
/grub
/grub.conf
52 echo grub.conf was updated
, but manual check is recomended.