On Thu, Jan 30, 2025 at 11:48 AM Tim Bird via lists.yoctoproject.org <tim.bird=sony....@lists.yoctoproject.org> wrote: > > Hello YP users, > > Is there any way to tell what distribution or bitbake image name was used > by looking at the contents of an image. > > I recently built a distribution based on Poky, using 'bitbake > core-image-minimal'. > I had hoped that I could see this recorded somewhere in the image, so I can > distinguish > between that image and another image I sometimes use from Texas Instruments > while running on Linux inside the image. > > It doesn't look like YP populates /etc/os-release, where distribution > information > is normally stored. Is that right?
The reference images from poky do not include os-release package which will provide this information, so you can manually add it via local.conf to IMAGE_INSTALL distros do add it for their specific images e.g. https://github.com/YoeDistro/yoe-distro/blob/master/sources/meta-yoe/recipes-core/images/yoe-simple-image.bb#L21 > > Is there anywhere else inside the image where information about the distro > being built is stored? > > I'm relatively inexperience with YP. Is there somewhere in the build where > the bitbake command that was used to create the image is stored. Could > this or other data be used to synthesize an appropriate /etc/os-release file? > > Thanks, > -- Tim > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64685): https://lists.yoctoproject.org/g/yocto/message/64685 Mute This Topic: https://lists.yoctoproject.org/mt/110903643/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-