Skip to content

Commit

Permalink
Merge pull request #1787 from zmrow/makefile-repo-img
Browse files Browse the repository at this point in the history
Makefile: Add disk image files to TUF repo during `cargo make repo`
  • Loading branch information
zmrow authored Nov 8, 2021
2 parents 1dc31be + 2139dee commit 5a083d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,14 @@ done
# modules for a given release.
LINK_REPO_TARGETS=("--link-target ${BUILDSYS_KMOD_KIT_PATH}")
# Include the root and data disk images in the repo if they exist
os_disk_img="${BUILDSYS_OUTPUT_DIR}/${BUILDSYS_NAME_FULL}.img.lz4"
data_disk_img="${BUILDSYS_OUTPUT_DIR}/${BUILDSYS_NAME_FULL}-data.img.lz4"
if [ -s "${os_disk_img}" ] && [ -s "${data_disk_img}" ]; then
LINK_REPO_TARGETS+=("--link-target ${os_disk_img}")
LINK_REPO_TARGETS+=("--link-target ${data_disk_img}")
fi
# Ensure we link an OVA if an OVF template exists (in which case we should have
# built an OVA)
if [ -s "${BUILDSYS_OVF_TEMPLATE}" ]; then
Expand Down

0 comments on commit 5a083d9

Please sign in to comment.