[Fai-commit] r6248 - branches/stable/3.4/examples/simple/scripts/GRUB_PC
Michael Prokop
mika at alioth.debian.org
Thu Dec 23 12:45:45 UTC 2010
Author: mika
Date: 2010-12-23 12:45:44 +0000 (Thu, 23 Dec 2010)
New Revision: 6248
Modified:
branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup
Log:
simple/scripts/GRUB_PC/10-setup: No need to deal with multiple devices anymore,
BOOT_DEVICE will always a be single value.
This version of 10-setup is known to work both with lenny and squeeze.
Thanks: alekibango, David Dreezer
Modified: branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup
===================================================================
--- branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup 2010-12-23 12:45:33 UTC (rev 6247)
+++ branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup 2010-12-23 12:45:44 UTC (rev 6248)
@@ -11,13 +11,14 @@
[ -z "$BOOT_DEVICE" ] && exit 701
$ROOTCMD grub-mkdevicemap --no-floppy
+GROOT=$($ROOTCMD grub-probe -tdrive -d $BOOT_DEVICE)
+# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606035
+GROOT=$(echo $GROOT | sed 's:md/:md:g')
-for device in $BOOT_DEVICE; do
- GROOT=$($ROOTCMD grub-probe -tdrive -d $device)
- $ROOTCMD grub-install --no-floppy --modules="lvm raid" "$GROOT"
- echo "Grub installed on $device = $GROOT"
-done
+$ROOTCMD grub-install --no-floppy "$GROOT"
+echo "Grub installed on $BOOT_DEVICE = $GROOT"
$ROOTCMD update-grub
+
exit $error
More information about the Fai-commit
mailing list