Fedora 21 tftp files fix (copy in syslinux modules)

For newer version of syslinux we also need to copy in any
ldlinux modules as well. This resolves PXE boot issues
when using a seed/undercloud build with new distributions
like Fedora 21.

Change-Id: Ide269386372dd4fae38174bb06b7a1b84a3aa0c5
Closes-bug: #1429499
This commit is contained in:
Dan Prince 2015-03-07 21:11:32 -05:00
parent 55d41bdbfa
commit f0c13bbe70
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,13 @@ fi
install -d -m 0755 -o ironic -g ironic /tftpboot/pxelinux.cfg/
install -o ironic -g ironic -m 744 $pxe_zero /tftpboot/pxelinux.0
# for newer syslinux versions we may need to copy in the library
# modules as well (Fedora 21 for example)
if [ -f /usr/share/syslinux/ldlinux.* ]; then
# Fedora/RHEL
cp /usr/share/syslinux/ldlinux.* /tftpboot
fi
# Disable the tftp-hpa upstart job, we're using xinetd
[ -f /etc/init/tftpd-hpa.conf ] && echo "manual" > /etc/init/tftpd-hpa.override