CentOS 8: Relax ironic iPXE EFI bootloader location

CentOS 7 had ipxe.efi. CentOS 8 has ipxe-i386.efi and ipxe-x86_64.efi.
Use a wildcard to copy any of these that are present.

Change-Id: I6d409e56b424a039f5aff9af86ca1b026c2c6286
Partially-Implements: blueprint centos-rhel-8
This commit is contained in:
Mark Goddard 2020-01-30 11:24:18 +00:00 committed by Radosław Piliszek
parent d00fa3a6dd
commit adcdef7d85

View File

@ -16,7 +16,7 @@ function prepare_ipxe {
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
cp /usr/lib/ipxe/{undionly.kpxe,ipxe.efi} /tftpboot
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rhel ]]; then
cp /usr/share/ipxe/{undionly.kpxe,ipxe.efi} /tftpboot
cp /usr/share/ipxe/{undionly.kpxe,ipxe*.efi} /tftpboot
fi
}