<div>The layer list is multiline, and includes quotes, so including it within</div><div>quotes is problematic, particularly if the revision includes characters which</div><div>are not valid outside of a quoted string in shell. To reproduce this failure:</div><div>do a build with an scm layer not on a branch.</div><div><br></div><div>Signed-off-by: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>&gt;</div><div>---</div><div> meta/classes/buildhistory.bbclass |    5 ++++-</div><div> 1 files changed, 4 insertions(+), 1 deletions(-)</div><div><br></div><div>diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass</div><div>index 39f5ff6..6a08db4 100644</div><div>--- a/meta/classes/buildhistory.bbclass</div><div>+++ b/meta/classes/buildhistory.bbclass</div><div>@@ -325,7 +325,10 @@ buildhistory_get_imageinfo() {</div><div> </div><div>         # Add some configuration information</div><div>         echo "${MACHINE}: ${IMAGE_BASENAME} configured for ${DISTRO} ${DISTRO_VERSION}" &gt; ${BUILDHISTORY_DIR_IMAGE}/build-id</div><div>-        echo "${@buildhistory_get_layers(d)}" &gt;&gt; ${BUILDHISTORY_DIR_IMAGE}/build-id</div><div>+</div><div>+        cat &gt;&gt; ${BUILDHISTORY_DIR_IMAGE}/build-id &lt;&lt;END</div><div>+${@buildhistory_get_layers(d)}</div><div>+END</div><div> }</div><div> </div><div> # By prepending we get in before the removal of packaging files</div><div>-- </div><div>1.7.8</div>