Merge "Missing pxelinux.0 on RedHat systems"
This commit is contained in:
commit
cf17375a24
@ -215,7 +215,16 @@ function configure_baremetal_nova_dirs() {
|
||||
# ensure /tftpboot is prepared
|
||||
sudo mkdir -p /tftpboot
|
||||
sudo mkdir -p /tftpboot/pxelinux.cfg
|
||||
sudo cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
|
||||
|
||||
PXEBIN=/usr/share/syslinux/pxelinux.0
|
||||
if [ ! -f $PXEBIN ]; then
|
||||
PXEBIN=/usr/lib/syslinux/pxelinux.0
|
||||
if [ ! -f $PXEBIN ]; then
|
||||
die $LINENO "pxelinux.0 (from SYSLINUX) not found."
|
||||
fi
|
||||
fi
|
||||
|
||||
sudo cp $PXEBIN /tftpboot/
|
||||
sudo chown -R $STACK_USER:$LIBVIRT_GROUP /tftpboot
|
||||
|
||||
# ensure $NOVA_STATE_PATH/baremetal is prepared
|
||||
|
Loading…
Reference in New Issue
Block a user