From cf37100ac5c79e18c9342cc550e1cd40429866a9 Mon Sep 17 00:00:00 2001 From: Noel Miller Date: Mon, 8 Apr 2024 12:56:55 -0500 Subject: [PATCH] chore(ci): test fix for copying sb_pubkey.der to ISO --- Makefile | 2 +- xorriso/gen_input.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index de90d2c..65557ce 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ $(ISO_NAME): results/images/boot.iso container/$(IMAGE_NAME)-$(IMAGE_TAG) xorris # Download the secure boot key sb_pubkey.der: - curl --fail -L -o sb_pubkey.der $(SECURE_BOOT_KEY_URL) && ls -alh + curl --fail -L -o sb_pubkey.der $(SECURE_BOOT_KEY_URL) # Build boot.iso using Lorax results/images/boot.iso: external/lorax/branch-$(VERSION) $(filter lorax_templates/%,$(_LORAX_TEMPLATES)) $(_REPO_FILES) $(if $(SECURE_BOOT_KEY_URL),sb_pubkey.der) diff --git a/xorriso/gen_input.sh b/xorriso/gen_input.sh index ef27010..0309e0f 100644 --- a/xorriso/gen_input.sh +++ b/xorriso/gen_input.sh @@ -34,11 +34,14 @@ then popd > /dev/null fi -if [ -f $(pwd)/sb_pubkey.der ] +pushd "${PWD}/../" > /dev/null +ls -alh ${PWD} +if [ -f ${PWD}/sb_pubkey.der ] then - echo "-map $(pwd)/../sb_pubkey.der sb_pubkey.der" + echo "-map ${PWD}/sb_pubkey.der sb_pubkey.der" echo "-chmod 0444 /sb_pubkey.der" fi +popd > /dev/null pushd "${PWD}/../container" > /dev/null for file in $(find "${IMAGE_NAME}-${IMAGE_TAG}" -type f)