From ec80c1eb0a3ed160aa19293d722b2c9bc835d5f9 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 26 May 2017 11:38:58 -0300 Subject: Fix grub.cfg syntax --- templates/grub.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/grub.cfg b/templates/grub.cfg index 6ff5b62..1124452 100644 --- a/templates/grub.cfg +++ b/templates/grub.cfg @@ -52,12 +52,12 @@ function bootfde { set target=root fi - if [ "${version}" == 'default' ]; then + if [ "${version}" = 'default' ]; then set kernel="/vmlinuz" set initrd="/initrd.img" else set kernel="/boot/vmlinuz-${version}" - set initrd="/boot/initrd.img-${version}"" + set initrd="/boot/initrd.img-${version}" fi cryptomount lvm/${volume} @@ -105,12 +105,12 @@ function bootimg { set distro=debian fi - if [ "${version}" == 'default' ]; then + if [ "${version}" = default ]; then set kernel="/vmlinuz" set initrd="/initrd.img" else set kernel="/boot/custom/${distro}/vmlinuz-${version}" - set initrd="/boot/custom/${distro}initrd.img-${version}"" + set initrd="/boot/custom/${distro}initrd.img-${version}" fi echo "Loading ${1}..." -- cgit v1.2.3