summaryrefslogtreecommitdiff
path: root/devstack/lib/ironic
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2020-10-26 14:35:17 +0100
committerDmitry Tantsur <dtantsur@protonmail.com>2020-10-26 14:35:17 +0100
commitfece20c8a9afacb8506158003bc29fff40e13adc (patch)
tree866fbeb44d09dbe08ac0d7fc22ce8ca29a48aa3f /devstack/lib/ironic
parent5e68f7910245408ed0705b1a97fff06676a2a60f (diff)
downloadironic-fece20c8a9afacb8506158003bc29fff40e13adc.tar.gz
devstack: remove no longer required UEFI hacks
* libvirt is usually shipped with the correct nvram options * Fedora already has the suitable iPXE ROM Change-Id: Ia53e25cee646241c8dccc6296c62f90c6793abc7
Diffstat (limited to 'devstack/lib/ironic')
-rw-r--r--devstack/lib/ironic19
1 files changed, 0 insertions, 19 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic
index b0280f3fb..6737586fa 100644
--- a/devstack/lib/ironic
+++ b/devstack/lib/ironic
@@ -1104,25 +1104,6 @@ function install_ironic {
install_apache_wsgi
fi
- if [[ "$IRONIC_BOOT_MODE" == "uefi" && "$IRONIC_IS_HARDWARE" == "False" ]]; then
-
- # Append the nvram configuration to libvirt if it's not present already
- if ! sudo grep -q "^nvram" /etc/libvirt/qemu.conf; then
- echo "nvram=[\"$UEFI_LOADER_PATH:$UEFI_NVRAM_PATH\"]" | sudo tee -a /etc/libvirt/qemu.conf
- fi
-
- # Replace the default virtio PXE ROM in QEMU with an EFI capable
- # one. The EFI ROM should work on with both boot modes, Legacy
- # BIOS and UEFI.
- if is_fedora; then
- sudo rm /usr/share/qemu/pxe-virtio.rom
- sudo ln -s /usr/share/ipxe.efi/1af41000.rom /usr/share/qemu/pxe-virtio.rom
- fi
-
- # Restart libvirt to the changes to take effect
- restart_libvirt
- fi
-
if is_redfish_enabled || is_deployed_by_redfish; then
setup_sushy
fi