Fix for rhel7 iso image creation.
Currently rhel7 image creation fails because it tries to copy default bootloaders which is ubuntu way. This commit updates `iso` element to correct the path of bootloaders required for rhel image. Change-Id: I526d75b2db609fc77be0fc778b4d00f2d3df38ec Closes-bug: 1750725
This commit is contained in:
parent
e4c2b379ee
commit
73a9ba0f1f
@ -29,7 +29,7 @@ function build_efiboot_img() {
|
|||||||
# Ubuntu: grub-efi-amd64-signed and shim-signed
|
# Ubuntu: grub-efi-amd64-signed and shim-signed
|
||||||
# Fedora: grub2-efi and shim
|
# Fedora: grub2-efi and shim
|
||||||
|
|
||||||
if [ $DISTRO_NAME = "fedora" ]; then
|
if [[ $DISTRO_NAME = "fedora" || $DISTRO_NAME = "rhel7" ]] ; then
|
||||||
cp $TMP_BOOTLOADER_DIR/shim.efi $TMP_BUILD_DIR/bootx64.efi
|
cp $TMP_BOOTLOADER_DIR/shim.efi $TMP_BUILD_DIR/bootx64.efi
|
||||||
cp $TMP_BOOTLOADER_DIR/grubx64.efi $TMP_BUILD_DIR/grubx64.efi
|
cp $TMP_BOOTLOADER_DIR/grubx64.efi $TMP_BUILD_DIR/grubx64.efi
|
||||||
else
|
else
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"isolinux": ""
|
"isolinux": ""
|
||||||
},
|
},
|
||||||
"redhat":{
|
"redhat":{
|
||||||
"syslinux": "",
|
"syslinux": "syslinux",
|
||||||
"syslinux-common": "",
|
"syslinux-common": "",
|
||||||
"isolinux": ""
|
"isolinux": ""
|
||||||
}
|
}
|
||||||
|
@ -10,28 +10,28 @@ set -o pipefail
|
|||||||
TMP_BOOTLOADER_DIR=/tmp/bootloader_files
|
TMP_BOOTLOADER_DIR=/tmp/bootloader_files
|
||||||
mkdir -p $TMP_BOOTLOADER_DIR
|
mkdir -p $TMP_BOOTLOADER_DIR
|
||||||
|
|
||||||
if [ $DISTRO_NAME = "fedora" ]; then
|
|
||||||
GRUB_FILE="/boot/efi/EFI/fedora/grubx64.efi"
|
|
||||||
else
|
|
||||||
GRUB_FILE="/usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $DISTRO_NAME = "fedora" ]; then
|
|
||||||
SHIM_FILE="/boot/efi/EFI/fedora/shim.efi"
|
|
||||||
else
|
|
||||||
SHIM_FILE="/usr/lib/shim/shim.efi.signed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#fedora
|
#fedora
|
||||||
if [ $DISTRO_NAME = "fedora" ]; then
|
if [ $DISTRO_NAME = "fedora" ]; then
|
||||||
|
GRUB_FILE="/boot/efi/EFI/fedora/grubx64.efi"
|
||||||
|
SHIM_FILE="/boot/efi/EFI/fedora/shim.efi"
|
||||||
SYSLINUX_FILE="/usr/share/syslinux/isolinux.bin"
|
SYSLINUX_FILE="/usr/share/syslinux/isolinux.bin"
|
||||||
LDLINUX_FILE="/usr/share/syslinux/ldlinux.c32"
|
LDLINUX_FILE="/usr/share/syslinux/ldlinux.c32"
|
||||||
#debian
|
#debian
|
||||||
elif [ $DISTRO_NAME = "debian" ]; then
|
elif [ $DISTRO_NAME = "debian" ]; then
|
||||||
|
GRUB_FILE="/usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed"
|
||||||
|
SHIM_FILE="/usr/lib/shim/shim.efi.signed"
|
||||||
SYSLINUX_FILE="/usr/lib/ISOLINUX/isolinux.bin"
|
SYSLINUX_FILE="/usr/lib/ISOLINUX/isolinux.bin"
|
||||||
LDLINUX_FILE="/usr/lib/syslinux/modules/bios/ldlinux.c32"
|
LDLINUX_FILE="/usr/lib/syslinux/modules/bios/ldlinux.c32"
|
||||||
|
#rhel7
|
||||||
|
elif [ $DISTRO_NAME = "rhel7" ]; then
|
||||||
|
GRUB_FILE="/boot/efi/EFI/redhat/grubx64.efi"
|
||||||
|
SHIM_FILE="/boot/efi/EFI/redhat/shim.efi"
|
||||||
|
SYSLINUX_FILE="/usr/share/syslinux/isolinux.bin"
|
||||||
|
LDLINUX_FILE="/usr/share/syslinux/ldlinux.c32"
|
||||||
#ubuntu
|
#ubuntu
|
||||||
else
|
else
|
||||||
|
GRUB_FILE="/usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed"
|
||||||
|
SHIM_FILE="/usr/lib/shim/shim.efi.signed"
|
||||||
SYSLINUX_FILE="/usr/lib/syslinux/isolinux.bin"
|
SYSLINUX_FILE="/usr/lib/syslinux/isolinux.bin"
|
||||||
LDLINUX_FILE="/usr/lib/syslinux/ldlinux.c32"
|
LDLINUX_FILE="/usr/lib/syslinux/ldlinux.c32"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user