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,10 +181,10 @@ 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
# Fix efi specific instructions in grub config file fi
if [ -d /sys/firmware/efi ]; then # Fix efi specific instructions in grub config file
sed -i 's%\(initrd\|linux\)efi /boot%\1 /boot%g' $GRUB_CFG if [ -d /sys/firmware/efi ]; then
fi sed -i 's%\(initrd\|linux\)efi /boot%\1 /boot%g' $GRUB_CFG
fi fi
} }