* [PATCH] imagetypes_vm: clean up intermediate ova artifacts
@ 2026-08-13 3:41 vidyasagar.gc via isar-users
0 siblings, 0 replies; only message in thread
From: vidyasagar.gc via isar-users @ 2026-08-13 3:41 UTC (permalink / raw)
To: isar-users; +Cc: Vidyasagar G C
From: Vidyasagar G C <vidyasagar.gc@siemens.com>
The ovf descriptor, manifest, and vmdk image are only required
while assembling the ova image. Remove these intermediate artifacts
after the ova has been successfully created, leaving only the
final ova image in the deployment directory.
Signed-off-by: Vidyasagar G C <vidyasagar.gc@siemens.com>
---
meta/classes-recipe/imagetypes_vm.bbclass | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/classes-recipe/imagetypes_vm.bbclass b/meta/classes-recipe/imagetypes_vm.bbclass
index 62eb9600..9f1f4c48 100644
--- a/meta/classes-recipe/imagetypes_vm.bbclass
+++ b/meta/classes-recipe/imagetypes_vm.bbclass
@@ -71,8 +71,6 @@ IMAGE_CMD:ova() {
exit 0
fi
rm -f '${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.ova'
- rm -f '${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.ovf'
- rm -f '${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.mf'
export PRIMARY_MAC=$(macgen)
export LAST_CHANGE=$(date -u "+%Y-%m-%dT%H:%M:%SZ")
@@ -95,6 +93,9 @@ IMAGE_CMD:ova() {
tar -uvf ${PP_DEPLOY}/${IMAGE_FULLNAME}.ova -C ${PP_DEPLOY} ${IMAGE_FULLNAME}.mf
fi
tar -uvf ${PP_DEPLOY}/${IMAGE_FULLNAME}.ova -C ${PP_DEPLOY} ${VIRTUAL_MACHINE_IMAGE_FILE}
+ rm -f '${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.mf'
+ rm -f '${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.ovf'
+ rm -f '${DEPLOY_DIR_IMAGE}/${VIRTUAL_MACHINE_IMAGE_FILE}'
EOIMAGER
}
IMAGE_CMD:ova[depends] = "${PN}:do_transform_template"
--
2.47.3
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260813034129.2393-1-vidyasagar.gc%40siemens.com.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-13 7:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13 3:41 [PATCH] imagetypes_vm: clean up intermediate ova artifacts vidyasagar.gc via isar-users
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox