Bug 895

Summary: Provide basic bitbake build information in the target image, /etc/yocto-release
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Darren Hart <dvhart>
Component: coreAssignee: Saul Wold <sgw>
Status: RESOLVED NOTABUG QA Contact:
Severity: enhancement    
Priority: Medium CC: meta.mr.watcher, meta.watcher, richard.purdie, sgw
Version: 1.0   
Target Milestone: 1.1   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Darren Hart 2011-03-17 15:26:22 UTC
At times we need to validate what exactly is running on a target image. This will become crucial for in field debugging as well. Something like /etc/yocto-release, or /etc/yocto-build would be an appropriate place. The file should include things like the release, or the git hash, the machine type and the image built.
Comment 1 Qing He 2011-04-26 02:20:14 UTC
Interesting idea, and what about /etc/issue.yocto or even /etc/issue?
Comment 2 Darren Hart 2011-04-27 12:17:43 UTC
I don't have a strong preference for where it is, so long as it is available.
Comment 3 Saul Wold 2011-07-23 21:33:15 UTC
It's there, /etc/issue and /etc/issue.net both list the DISTRO_NAME and DISTRO_VERSION.