@@ -7,7 +7,7 @@ function prepare_pxe_pxelinux {
77 cp /usr/lib/PXELINUX/pxelinux.0 \
88 /usr/lib/syslinux/modules/bios/{chain.c32,ldlinux.c32} \
99 ${TFTPBOOT_PATH} /
10- elif [[ " ${KOLLA_BASE_DISTRO} " =~ centos ]]; then
10+ elif [[ " ${KOLLA_BASE_DISTRO} " =~ centos| rocky ]]; then
1111 if [[ " ${TFTPBOOT_PATH} " != /tftpboot ]]; then
1212 cp /tftpboot/{pxelinux.0,chain.c32,ldlinux.c32} \
1313 ${TFTPBOOT_PATH} /
@@ -20,7 +20,7 @@ function prepare_pxe_grub {
2020 if [[ " ${KOLLA_BASE_DISTRO} " =~ debian| ubuntu ]]; then
2121 shim_src_file=" /usr/lib/shim/shim*64.efi.signed"
2222 grub_src_file=" /usr/lib/grub/*-efi-signed/grubnet*64.efi.signed"
23- elif [[ " ${KOLLA_BASE_DISTRO} " =~ centos ]]; then
23+ elif [[ " ${KOLLA_BASE_DISTRO} " =~ centos| rocky ]]; then
2424 shim_src_file=" /boot/efi/EFI/centos/shim*64.efi"
2525 grub_src_file=" /boot/efi/EFI/centos/grub*64.efi"
2626 fi
@@ -51,7 +51,7 @@ function prepare_ipxe {
5151 elif [[ ! -e ${TFTPBOOT_PATH} /snponly.efi ]]; then
5252 ln -s ${TFTPBOOT_PATH} /ipxe.efi ${TFTPBOOT_PATH} /snponly.efi
5353 fi
54- elif [[ " ${KOLLA_BASE_DISTRO} " =~ centos ]]; then
54+ elif [[ " ${KOLLA_BASE_DISTRO} " =~ centos| rocky ]]; then
5555 cp /usr/share/ipxe/{undionly.kpxe,ipxe* .efi} ${TFTPBOOT_PATH} /
5656 if [[ ! -e ${TFTPBOOT_PATH} /ipxe.efi ]]; then
5757 ln -s ${TFTPBOOT_PATH} /ipxe-${KOLLA_BASE_ARCH} .efi ${TFTPBOOT_PATH} /ipxe.efi
0 commit comments