update to 31b795ca71189b326b80666076398f31aea4f2be
[automated-distro-installer] / fai / config / scripts / CENTOS / 40-install-grub
index 6af18f2d13656b92be2ce6743c0f1e70596c34e0..8a74b9356f67011fac722c2f0cbc4100752544f3 100755 (executable)
@@ -24,9 +24,9 @@ if [ -d $target/boot/grub2 -a ! -f $target/boot/grub2/device.map ]; then
     done
 fi
 
-bootdev=`device2grub $BOOT_DEVICE`
-bootpart=`device2grub $BOOT_PARTITION`
-version=`$ROOTCMD rpm -qv kernel | cut -d- -f2-`
+bootdev=$(device2grub $BOOT_DEVICE)
+bootpart=$(device2grub $BOOT_PARTITION)
+version=$($ROOTCMD rpm -qv kernel | cut -d- -f2-)
 
 if grep '[[:space:]]/boot[[:space:]]' $LOGDIR/fstab; then
        bootdir=''
@@ -69,7 +69,7 @@ else
     # CentOS 5
     iname=initrd
 fi
-title=`head -1 $target/etc/redhat-release`
+title=$(head -1 $target/etc/redhat-release)
 
 cat > $target/boot/grub/grub.conf <<-EOF
        timeout 5