Merge "Fix Grub configurations for Fedora images built on a UEFI host."

This commit is contained in:
Jenkins 2014-04-17 07:48:06 +00:00 committed by Gerrit Code Review
commit 95cdefebf6

View File

@ -169,6 +169,10 @@ function install_grub2 {
if [ $(lsb_release -rs) = '19' ]; then
sed -i "s%UUID=[A-Za-z0-9\-]*%LABEL=cloudimg-rootfs%" /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
}