From: Jon Ringle <[email protected]> Create the root.tgz with a label in the form: ${PTXCONF_PROJECT_VENDOR}-${PTXCONF_PROJECT}${PTXCONF_PROJECT_VERSION}
This is useful for an automated install script to verify quickly that the tar is of the right type by doing: tar --test-label -f root.tgz Signed-off-by: Jon Ringle <[email protected]> --- rules/post/image_tgz.make | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/post/image_tgz.make b/rules/post/image_tgz.make index 5318143..f7e71d1 100644 --- a/rules/post/image_tgz.make +++ b/rules/post/image_tgz.make @@ -12,10 +12,10 @@ SEL_ROOTFS-$(PTXCONF_IMAGE_TGZ) += $(IMAGEDIR)/root.tgz ifdef PTXCONF_IMAGE_TGZ $(IMAGEDIR)/root.tgz: $(STATEDIR)/image_working_dir - @echo -n "Creating root.tgz from working dir..." + @echo -n "Creating root.tgz from working dir with label..." @cd $(image/work_dir); \ (awk -F: $(DOPERMISSIONS) $(image/permissions) && \ - ( echo -n "tar -zcf "; \ + ( echo -n "tar --label \"${PTXCONF_PROJECT_VENDOR}-${PTXCONF_PROJECT}${PTXCONF_PROJECT_VERSION}\" -zcf "; \ echo -n "$@ ." ) \ ) | $(FAKEROOT) -- @echo "done." -- 1.7.10.4 -- ptxdist mailing list [email protected]
