]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
testimage: get real os-release file
authorPeter Marko <peter.marko@siemens.com>
Sat, 14 Jun 2025 07:47:33 +0000 (09:47 +0200)
committerSteve Sakoman <steve@sakoman.com>
Mon, 16 Jun 2025 19:50:00 +0000 (12:50 -0700)
commit93efeca19f53132fce84d914b7ebf21070370127
tree57433f971b8fbeb67330d9d556f22a288d1fd3ff
parente9cfc549091b77d08817eb7235076c7a0c20e4fa
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.

(From OE-Core rev: ed43f9ccb3c08845259e24440912631afd780d12)

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