[Fai-commit] r6445 - branches/stable/3.4/examples/simple/files/boot/grub/menu.lst
Michael Prokop
mika at alioth.debian.org
Fri Apr 15 18:14:46 UTC 2011
Author: mika
Date: 2011-04-15 18:14:44 +0000 (Fri, 15 Apr 2011)
New Revision: 6445
Modified:
branches/stable/3.4/examples/simple/files/boot/grub/menu.lst/postinst
Log:
menu.lst/postinst: Use grub device name for $ROOTCMD grub-install
(cherry picked from commit 843835a9e4e502cf6f0e7bbfffe8b30050499098)
Modified: branches/stable/3.4/examples/simple/files/boot/grub/menu.lst/postinst
===================================================================
--- branches/stable/3.4/examples/simple/files/boot/grub/menu.lst/postinst 2011-04-15 18:14:35 UTC (rev 6444)
+++ branches/stable/3.4/examples/simple/files/boot/grub/menu.lst/postinst 2011-04-15 18:14:44 UTC (rev 6445)
@@ -17,7 +17,7 @@
[ -z "$BOOT_DEVICE" ] && exit 701
[ -z "$BOOT_PARTITION" ] && exit 702
-$ROOTCMD grub-install --no-floppy $BOOT_DEVICE
+$ROOTCMD grub-install --no-floppy $(device2grub $BOOT_DEVICE)
GROOT=$(device2grub $BOOT_PARTITION)
perl -pi -e 's/#(\w+)#/$ENV{$1}/g' $2
$ROOTCMD /usr/sbin/update-grub
More information about the Fai-commit
mailing list