]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
testimage: get real os-release file
authorPeter Marko <peter.marko@siemens.com>
Tue, 13 May 2025 07:41:57 +0000 (09:41 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 May 2025 09:54:58 +0000 (10:54 +0100)
commited43f9ccb3c08845259e24440912631afd780d12
tree176c97059d7fe7357d7e971e15b39c73333b587d
parent56149c8c2108973666251e21609a7210a91984cf
testimage: get real os-release file

/etc/os-release is a symlink to /usr/lib.
Symlink is retrieved as a dead link which points to nowhere if also the
original file is not accompanying it.
Fetch the real file in addition to this link.

Alternative could be to use "tar -h" (supported also by busybox tar),
however that could lose some important information if links are relevant
for failure analysis.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/testimage.bbclass