From be14aae263a8b6bb46796f10bb9461d20629a667 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Tue, 8 Mar 2016 17:46:13 +0100 Subject: [PATCH] [devstack] add support for using iPXE instead of plain PXE Makes our devstack plugin respect the IRONIC_IPXE_ENABLED variable. Partial-Bug: #1416371 Change-Id: I16c6454ba5e1339acfe302baa68e69b9a81f9a18 --- devstack/plugin.sh | 42 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index f2ab2af9d..9a889186e 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -134,11 +134,25 @@ function prepare_tftp { fi fi - mkdir_chown_stack "$IRONIC_TFTPBOOT_DIR/pxelinux.cfg" - cp $IRONIC_INSPECTOR_KERNEL_PATH $IRONIC_TFTPBOOT_DIR/ironic-inspector.kernel - cp $IRONIC_INSPECTOR_INITRAMFS_PATH $IRONIC_TFTPBOOT_DIR + if [[ "$IRONIC_IPXE_ENABLED" == "True" ]] ; then + cp $IRONIC_INSPECTOR_KERNEL_PATH $IRONIC_HTTP_DIR/ironic-inspector.kernel + cp $IRONIC_INSPECTOR_INITRAMFS_PATH $IRONIC_HTTP_DIR - cat > "$IRONIC_TFTPBOOT_DIR/pxelinux.cfg/default" < "$IRONIC_HTTP_DIR/ironic-inspector.ipxe" < "$IRONIC_TFTPBOOT_DIR/pxelinux.cfg/default" < "$IRONIC_INSPECTOR_DHCP_CONF_FILE" < "$IRONIC_INSPECTOR_DHCP_CONF_FILE" < "$IRONIC_INSPECTOR_DHCP_CONF_FILE" <