X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FCENTOS%2F40-install-grub;fp=fai%2Fconfig%2Fscripts%2FCENTOS%2F40-install-grub;h=8a74b9356f67011fac722c2f0cbc4100752544f3;hb=7ade5e2c6113530c5f99cfc95880897fcb479f39;hp=6af18f2d13656b92be2ce6743c0f1e70596c34e0;hpb=0f532bb1fcccbef349748700040318f882a2ac40;p=automated-distro-installer diff --git a/fai/config/scripts/CENTOS/40-install-grub b/fai/config/scripts/CENTOS/40-install-grub index 6af18f2..8a74b93 100755 --- a/fai/config/scripts/CENTOS/40-install-grub +++ b/fai/config/scripts/CENTOS/40-install-grub @@ -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