Merge "Fix Ironic for Syslinux >= 5.00"
This commit is contained in:
commit
b554c39dc6
10
lib/ironic
10
lib/ironic
@ -238,7 +238,15 @@ function configure_ironic_dirs {
|
|||||||
die $LINENO "PXE boot file $IRONIC_PXE_BOOT_IMAGE not found."
|
die $LINENO "PXE boot file $IRONIC_PXE_BOOT_IMAGE not found."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp $IRONIC_PXE_BOOT_IMAGE $IRONIC_TFTPBOOT_DIR
|
# Copy PXE binary
|
||||||
|
if [[ "$IRONIC_IPXE_ENABLED" == "True" ]] ; then
|
||||||
|
cp $IRONIC_PXE_BOOT_IMAGE $IRONIC_TFTPBOOT_DIR
|
||||||
|
else
|
||||||
|
# Syslinux >= 5.00 pxelinux.0 binary is not "stand-alone" anymore,
|
||||||
|
# it depends on some c32 modules to work correctly.
|
||||||
|
# More info: http://www.syslinux.org/wiki/index.php/Library_modules
|
||||||
|
cp -aR $(dirname $IRONIC_PXE_BOOT_IMAGE)/*.{c32,0} $IRONIC_TFTPBOOT_DIR
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# configure_ironic() - Set config files, create data dirs, etc
|
# configure_ironic() - Set config files, create data dirs, etc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user