mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
chore(ci): test fix for copying sb_pubkey.der to ISO
This commit is contained in:
parent
1ca4950699
commit
cf37100ac5
2 changed files with 6 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -102,7 +102,7 @@ $(ISO_NAME): results/images/boot.iso container/$(IMAGE_NAME)-$(IMAGE_TAG) xorris
|
||||||
|
|
||||||
# Download the secure boot key
|
# Download the secure boot key
|
||||||
sb_pubkey.der:
|
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
|
# 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)
|
results/images/boot.iso: external/lorax/branch-$(VERSION) $(filter lorax_templates/%,$(_LORAX_TEMPLATES)) $(_REPO_FILES) $(if $(SECURE_BOOT_KEY_URL),sb_pubkey.der)
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,14 @@ then
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f $(pwd)/sb_pubkey.der ]
|
pushd "${PWD}/../" > /dev/null
|
||||||
|
ls -alh ${PWD}
|
||||||
|
if [ -f ${PWD}/sb_pubkey.der ]
|
||||||
then
|
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"
|
echo "-chmod 0444 /sb_pubkey.der"
|
||||||
fi
|
fi
|
||||||
|
popd > /dev/null
|
||||||
|
|
||||||
pushd "${PWD}/../container" > /dev/null
|
pushd "${PWD}/../container" > /dev/null
|
||||||
for file in $(find "${IMAGE_NAME}-${IMAGE_TAG}" -type f)
|
for file in $(find "${IMAGE_NAME}-${IMAGE_TAG}" -type f)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue