[Lunar-commits] CVS: theedge/var/lib/lunar/functions kernel.lunar, 1.11, 1.12

Jaime Buffery nestu at lunar-linux.org
Mon Feb 14 13:01:27 UTC 2005


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory espresso.foo-projects.org:/tmp/cvs-serv19264

Modified Files:
	kernel.lunar 
Log Message:
* get rid of the annoying grub install questions (adding a warning that it should be installed).
* add a white line between kernel entries.


Index: kernel.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/kernel.lunar,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- kernel.lunar	19 Nov 2004 14:42:13 -0000	1.11
+++ kernel.lunar	14 Feb 2005 13:01:25 -0000	1.12
@@ -146,6 +146,9 @@
     (( IMAGE_COUNT=0 ))
     for LINE in $(cat /boot/grub/menu.lst) ; do
       if echo $LINE | grep -q "title" ; then
+        # To create a separating line between entries
+        echo "" >> /boot/grub/menu.lst.new
+
         if (( IMAGE_COUNT == 0 )) ; then
           if ! grep -q "$IMAGE_NAME" /boot/grub/menu.lst ; then
             echo -e "$GRUB_IMAGE_ENTRY" >> /boot/grub/menu.lst.new
@@ -179,21 +182,16 @@
     y|Y) edit_file /boot/grub/menu.lst ;;
   esac
 
-  message "Install GRUB into MBR of first drive? [y|Y]"
-  read GRUB_FIRST_DRIVE
-  case $GRUB_FIRST_DRIVE in
-    y|Y) GRUB_BOOT_DEVICE="(hd0)" ;; 
-    *  ) message "Otherwise please specify in GRUB notation the desired drive/partition"
-         message "Using parenthesis and NO spaces!"
-         message "Samples: (hd1)    2nd drive MBR"
-         message "         (hd1,0)  2nd drive with 1st partition"
-         message "         (hd0,2)  1st drive with 3rd partition"
-         echo -n "GRUB_BOOT_DEVICE=(hd#,#):  "
-         read GRUB_BOOT_DEVICE ;;
-  esac
-
-  /usr/sbin/grub-install "$GRUB_BOOT_DEVICE"
-  sleep 4
+cat << EOF
+* * * * * * * * * * * * * * * * * * * * * * * *
+*                                             *
+*              W A R N I N G                  *                            
+*                                             *
+*  Do not forget to install grub to your MBR  *
+*  if you haven't done so before rebooting    *
+*                                             *
+* * * * * * * * * * * * * * * * * * * * * * * *
+EOF
 
 }
 



More information about the Lunar-commits mailing list