Fix the bootloader on UEFI machines

The fix for UEFI machines was only applied on Fedora, not RHEL or other distros.

Change-Id: I43b7a826b7049703b0ffd84ad44b93c912dc6b53
This commit is contained in:
Lennart Regebro 2015-02-11 15:19:06 +01:00 committed by Lennart Regebro
parent 084d1dfc50
commit a9b07487ef

View File

@ -181,11 +181,11 @@ function install_grub2 {
if [ $DIB_RELEASE = '19' ]; then if [ $DIB_RELEASE = '19' ]; then
sed -i "s%UUID=[A-Za-z0-9\-]*%LABEL=${DIB_ROOT_LABEL}%" /etc/fstab sed -i "s%UUID=[A-Za-z0-9\-]*%LABEL=${DIB_ROOT_LABEL}%" /etc/fstab
fi fi
fi
# Fix efi specific instructions in grub config file # Fix efi specific instructions in grub config file
if [ -d /sys/firmware/efi ]; then if [ -d /sys/firmware/efi ]; then
sed -i 's%\(initrd\|linux\)efi /boot%\1 /boot%g' $GRUB_CFG sed -i 's%\(initrd\|linux\)efi /boot%\1 /boot%g' $GRUB_CFG
fi fi
fi
} }
DIB_EXTLINUX=${DIB_EXTLINUX:-0} DIB_EXTLINUX=${DIB_EXTLINUX:-0}