[Fai-commit] r6223 - branches/stable/3.4/examples/simple/scripts/GRUB_PC

Michael Prokop mika at alioth.debian.org
Tue Nov 30 22:41:17 UTC 2010


Author: mika
Date: 2010-11-30 22:41:16 +0000 (Tue, 30 Nov 2010)
New Revision: 6223

Modified:
   branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup
Log:
do not install grub always into (hd0) (closes: #604938)

Modified: branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup
===================================================================
--- branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup	2010-11-30 22:41:12 UTC (rev 6222)
+++ branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup	2010-11-30 22:41:16 UTC (rev 6223)
@@ -5,6 +5,8 @@
 
 $ROOTCMD grub-mkdevicemap -n -m /boot/grub/device.map
 $ROOTCMD grub-mkconfig -o /boot/grub/grub.cfg
-$ROOTCMD grub-install --no-floppy "(hd0)"
+GROOT=$($ROOTCMD grub-probe -tdrive -d $BOOT_DEVICE)
+$ROOTCMD grub-install --no-floppy "$GROOT"
+echo "Grub installed on $BOOT_DEVICE = $GROOT"
 
 exit $error




More information about the Fai-commit mailing list