[Fai-commit] r6224 - branches/stable/3.4/examples/simple/scripts/GRUB_PC
Michael Prokop
mika at alioth.debian.org
Tue Nov 30 22:41:21 UTC 2010
Author: mika
Date: 2010-11-30 22:41:20 +0000 (Tue, 30 Nov 2010)
New Revision: 6224
Modified:
branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup
Log:
apply patch from experimental, install grub into all raid devices
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:16 UTC (rev 6223)
+++ branches/stable/3.4/examples/simple/scripts/GRUB_PC/10-setup 2010-11-30 22:41:20 UTC (rev 6224)
@@ -3,10 +3,21 @@
error=0 ; trap "error=$((error|1))" ERR
-$ROOTCMD grub-mkdevicemap -n -m /boot/grub/device.map
-$ROOTCMD grub-mkconfig -o /boot/grub/grub.cfg
-GROOT=$($ROOTCMD grub-probe -tdrive -d $BOOT_DEVICE)
-$ROOTCMD grub-install --no-floppy "$GROOT"
-echo "Grub installed on $BOOT_DEVICE = $GROOT"
+set -a
+# during softupdate use this file
+[ -r $LOGDIR/disk_var.sh ] && . $LOGDIR/disk_var.sh
+
+[ -z "$BOOT_DEVICE" ] && exit 701
+
+$ROOTCMD grub-mkdevicemap --no-floppy
+
+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 update-grub
+
exit $error
More information about the Fai-commit
mailing list