Don't install ubuntu efi debs on cent

Recently shim and grub-efi-amd64-signed were moved from
debs to be installed by lib/ironic, which causes errors
since the latter does not exist for rpm based distros.

Change-Id: I87c5268bdd23c4978201b4b7cb2e4a4770190828
This commit is contained in:
michaeltchapman 2019-07-11 01:22:56 +10:00
parent 691d3e4992
commit 1fcd7a477d
1 changed files with 5 additions and 1 deletions

View File

@ -510,7 +510,11 @@ UEFI_NVRAM_PATH=$IRONIC_UEFI_FILES_DIR/OVMF_VARS.fd
# Handle architecture specific package installs
if [[ $IRONIC_HW_ARCH == "x86_64" ]]; then
install_package shim
install_package grub-efi-amd64-signed
if is_ubuntu; then
install_package grub-efi-amd64-signed
elif is_fedora; then
install_package grub2-efi
fi
fi
# Sanity checks