[PATCH v1] automation: dump contents of /etc/os-release

Olaf Hering posted 1 patch 2 years, 9 months ago
Test gitlab-ci failed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20210708062922.23393-1-olaf@aepfle.de
automation/scripts/build | 2 ++
1 file changed, 2 insertions(+)
[PATCH v1] automation: dump contents of /etc/os-release
Posted by Olaf Hering 2 years, 9 months ago
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>
---
 automation/scripts/build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/automation/scripts/build b/automation/scripts/build
index 46b6903d29..55da912fc5 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -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

Re: [PATCH v1] automation: dump contents of /etc/os-release
Posted by Andrew Cooper 2 years, 9 months ago
On 08/07/2021 07:29, Olaf Hering wrote:
> 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>