From 8c61f5cafd27f3c9eede3a27d3300faa1428d3b7 Mon Sep 17 00:00:00 2001 From: sickcodes Date: Mon, 22 Mar 2021 14:26:10 +0000 Subject: [PATCH] Only download EFI and OcBinaryData if using libguestfs to make a bootable image. --- generate-unique-machine-values.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate-unique-machine-values.sh b/generate-unique-machine-values.sh index 81f702c..1cdd707 100755 --- a/generate-unique-machine-values.sh +++ b/generate-unique-machine-values.sh @@ -384,7 +384,9 @@ EOF [ -d "${OUTPUT_DIRECTORY}" ] || mkdir -p "${OUTPUT_DIRECTORY}" [ -e ./macserial ] || build_mac_serial download_vendor_mac_addresses - download_qcow_efi_folder + if [ "${CREATE_BOOTDISKS}" ] || [ "${OUTPUT_BOOTDISK}" ]; then + download_qcow_efi_folder + fi generate_serial_sets echo "${SERIAL_SETS_FILE}" }