[Fai-commit] r6351 - trunk/examples/simple/files/boot/grub/menu.lst
Michael Goetze
mgoetze-guest at alioth.debian.org
Thu Apr 14 18:48:35 UTC 2011
Author: mgoetze-guest
Date: 2011-04-14 18:48:35 +0000 (Thu, 14 Apr 2011)
New Revision: 6351
Modified:
trunk/examples/simple/files/boot/grub/menu.lst/postinst
Log:
menu.lst/postinst: Use grub device name for $ROOTCMD grub-install
Modified: trunk/examples/simple/files/boot/grub/menu.lst/postinst
===================================================================
--- trunk/examples/simple/files/boot/grub/menu.lst/postinst 2011-04-14 18:41:42 UTC (rev 6350)
+++ trunk/examples/simple/files/boot/grub/menu.lst/postinst 2011-04-14 18:48:35 UTC (rev 6351)
@@ -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