Skip to contentSkip to conversation

buildhistory.bbclass: create image directory when needed

PATCH New Patrick Ohly 1 participant 1 message Mar 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildhistory.bbclass: create image directory when needed

buildhistory_get_imageinfo() assumed that the buildhistory directory for the image had already been created earlier. That assumption is not true for special images (like the virtual swupd images from meta-swupd) where the entire traditional do_rootfs/do_image is skipped.

Creating files-in-image.txt still makes sense for such images, so support them by creating the directory also in buildhistory_get_imageinfo().

---
 meta/classes/buildhistory.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/buildhistory.bbclass +1 -0
index 0b3b7ce..108275a 100644
@@ -504,6 +504,7 @@ buildhistory_get_imageinfo() {
 		return
 	fi
 
+        mkdir -p ${BUILDHISTORY_DIR_IMAGE}
 	buildhistory_list_files ${IMAGE_ROOTFS} ${BUILDHISTORY_DIR_IMAGE}/files-in-image.txt
 
 	# Collect files requested in BUILDHISTORY_IMAGE_FILES
Signature · 1 line
2.1.4