automation: dump contents of /etc/os-release
authorOlaf Hering <olaf@aepfle.de>
Thu, 8 Jul 2021 06:29:22 +0000 (08:29 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Jul 2021 11:36:21 +0000 (12:36 +0100)
To aid debugging build failures, dump /etc/os-release during build.
This helps with rolling releases such as Tumbleweed to understand the
state of the build container.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
automation/scripts/build

index 4a1161bb944749066799d0a508cc58a2c0abbf49..281f8b1fccd7fe29d3ea73f3400b93426d7a4560 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash -ex
 
+test -f /etc/os-release && cat "$_"
+
 $CC --version
 
 # Express the compiler version as an integer.  e.g. GCC 4.9.2 => 0x040902