wok-current 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 6e5120e37321
children c9439823a4b3
files linux/receipt
line diff
     1.1 --- a/linux/receipt	Mon Dec 31 19:29:52 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