wok-next diff linux/receipt @ rev 13754
Set the new kernel as default one in grub & Add 'quiet' as boot option becaus it's the default on fresh hdd install.
author | border |
---|---|
date | Wed Jan 02 23:24:27 2013 -0500 (2013-01-02) |
parents | 2771a5b12f2f |
children | 47a7ea2215ab |
line diff
1.1 --- a/linux/receipt Mon Nov 05 11:28:45 2012 +0100 1.2 +++ b/linux/receipt Wed Jan 02 23:24:27 2013 -0500 1.3 @@ -328,15 +328,18 @@ 1.4 grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n 1` 1.5 # Add new kernel entry in case of upgrade for installed system. 1.6 if ! grep -q vmlinuz-$VERSION-slitaz $1/boot/grub/menu.lst; then 1.7 - cat >> $1/boot/grub/menu.lst << EOT 1.8 + cat >> $1/boot/grub/menu.lst << EOT 1.9 1.10 title SliTaz GNU/Linux (Kernel $VERSION-slitaz) 1.11 -$grub_dev 1.12 -kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev 1.13 +$grub_dev 1.14 +kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev quiet 1.15 EOT 1.16 + # Make it the default entry 1.17 + last_entry=$(( $(grep -c '^title' $1/boot/grub/menu.lst)-1 )) 1.18 + sed -e "s/^default.*/default $last_entry/g" -i $1/boot/grub/menu.lst 1.19 fi 1.20 # Display information message. 1.21 - cat <<EOT 1.22 + cat <<EOT 1.23 ---- 1.24 GRUB is installed, these tree lines must be in your /boot/grub/menu.lst: 1.25