[Fai-commit] r5780 - branches/experimental/patches

Michael Tautschnig mt at alioth.debian.org
Fri Apr 30 06:18:26 UTC 2010


Author: mt
Date: 2010-04-30 06:18:19 +0000 (Fri, 30 Apr 2010)
New Revision: 5780

Modified:
   branches/experimental/patches/grub-pc
Log:
grub_dev already has parentheses; thanks Waldemar!


Modified: branches/experimental/patches/grub-pc
===================================================================
--- branches/experimental/patches/grub-pc	2010-04-28 21:53:58 UTC (rev 5779)
+++ branches/experimental/patches/grub-pc	2010-04-30 06:18:19 UTC (rev 5780)
@@ -41,7 +41,7 @@
 ===================================================================
 --- trunk.orig/examples/simple/scripts/GRUB_PC/10-setup
 +++ trunk/examples/simple/scripts/GRUB_PC/10-setup	
-@@ -2,8 +2,24 @@
+@@ -2,8 +2,25 @@
  
  error=0 ; trap "error=$((error|1))" ERR
  
@@ -61,8 +61,9 @@
 +  grub_dev=$(device2grub $device)
 +  if [ -z "$grub_dev" ] ; then
 +    grub_dev=$(echo $device | sed 's#^/dev/##')
++    grub_dev="($grub_dev)"
 +  fi
-+  $ROOTCMD /usr/sbin/grub-install --no-floppy --modules="biosdisk part_msdos ext2 lvm raid" "($grub_dev)"
++  $ROOTCMD /usr/sbin/grub-install --no-floppy --modules="biosdisk part_msdos ext2 lvm raid" "$grub_dev"
 +done
 +
 +$ROOTCMD update-grub




More information about the Fai-commit mailing list