[yocto] Identifying image in os-release
Moore, Thomas (FtWorth)
Thomas.Moore2 at ATK.COM
Tue Feb 3 11:42:24 PST 2015
For my system, we are generating two images: a release image and a debug image. The debug image simply adds the debug image features (tools-debug, eclipse-debug, and dbg-pkgs). This approach looks like it is going to work well for our needs. However, the one issue that I have is that there doesn't appear to be a way to easily tell which image is running. My current plan for version identification is to make use of the /etc/os-release file that is generated during the build, which is suitable for determining the version of the base distribution. However, I can't find a way to influence any of those values from within my image recipes, which I image is by design.
It would seem to me that having a way to assign a version, or some other identifying information, to a final image would be very important. The DISTRO_VERSION is nice, but it doesn't seem like it's enough considering that you can write an image recipe to add any number of additional packages.
Any suggestions on how I can achieve this?
Thanks,
Thomas
More information about the yocto
mailing list