Merge "Fix EFIBOOT image upload in devstack"

This commit is contained in:
Zuul 2019-10-18 10:20:42 +00:00 committed by Gerrit Code Review
commit 6a054eb692

View File

@ -943,7 +943,7 @@ function configure_redfish {
cat - <<EOF > $IRONIC_REDFISH_EMULATOR_CONFIG
SUSHY_EMULATOR_BOOT_LOADER_MAP = {
'Uefi': {
'UEFI': {
'x86_64': '$UEFI_LOADER_PATH'
},
'Legacy': {
@ -2580,6 +2580,9 @@ function upload_baremetal_ironic_efiboot {
sudo umount $efiboot_mount
mv $efiboot_path $IRONIC_EFIBOOT
fi
# load efiboot into glance
IRONIC_EFIBOOT_ID=$(openstack \
image create \
@ -2587,13 +2590,10 @@ function upload_baremetal_ironic_efiboot {
--public --disk-format=raw \
--container-format=bare \
-f value -c id \
< $efiboot_path)
< $IRONIC_EFIBOOT)
die_if_not_set $LINENO IRONIC_EFIBOOT_ID "Failed to load EFI bootloader image into glance"
mv $efiboot_path $IRONIC_EFIBOOT
iniset $IRONIC_CONF_FILE conductor bootloader $IRONIC_EFIBOOT_ID
fi
}
# build deploy kernel+ramdisk, then upload them to glance