[Fai-commit] r6444 - branches/stable/3.4/examples/simple/files/boot/grub/menu.lst
Michael Prokop
mika at alioth.debian.org
Fri Apr 15 18:14:40 UTC 2011
Author: mika
Date: 2011-04-15 18:14:35 +0000 (Fri, 15 Apr 2011)
New Revision: 6444
Modified:
branches/stable/3.4/examples/simple/files/boot/grub/menu.lst/postinst
Log:
Use $ROOTCMD grub-install for grub1
(cherry picked from commit 8423178d5b4d69364a4d7b2e3f176baae2a5dc51)
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:20 UTC (rev 6443)
+++ branches/stable/3.4/examples/simple/files/boot/grub/menu.lst/postinst 2011-04-15 18:14:35 UTC (rev 6444)
@@ -17,7 +17,7 @@
[ -z "$BOOT_DEVICE" ] && exit 701
[ -z "$BOOT_PARTITION" ] && exit 702
-grub-install --no-floppy --root-directory=$target $BOOT_DEVICE
+$ROOTCMD grub-install --no-floppy $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