From a9b07487efc36ffa78a8b9a14f14ea23e7eaf96b Mon Sep 17 00:00:00 2001 From: Lennart Regebro Date: Wed, 11 Feb 2015 15:19:06 +0100 Subject: [PATCH] Fix the bootloader on UEFI machines The fix for UEFI machines was only applied on Fedora, not RHEL or other distros. Change-Id: I43b7a826b7049703b0ffd84ad44b93c912dc6b53 --- elements/vm/finalise.d/51-bootloader | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elements/vm/finalise.d/51-bootloader b/elements/vm/finalise.d/51-bootloader index 6031cd4c9..a53221ec9 100755 --- a/elements/vm/finalise.d/51-bootloader +++ b/elements/vm/finalise.d/51-bootloader @@ -181,10 +181,10 @@ function install_grub2 { if [ $DIB_RELEASE = '19' ]; then sed -i "s%UUID=[A-Za-z0-9\-]*%LABEL=${DIB_ROOT_LABEL}%" /etc/fstab fi - # Fix efi specific instructions in grub config file - if [ -d /sys/firmware/efi ]; then - sed -i 's%\(initrd\|linux\)efi /boot%\1 /boot%g' $GRUB_CFG - fi + fi + # Fix efi specific instructions in grub config file + if [ -d /sys/firmware/efi ]; then + sed -i 's%\(initrd\|linux\)efi /boot%\1 /boot%g' $GRUB_CFG fi }