From ca6f27d2f0062fbfb000738937020380b278e376 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 19 Mar 2026 14:43:26 +0100 Subject: [PATCH] mkspec-wrapper.sh: Add OS id to $INSTALL_LOG Add the name of the operating system ID as taken from /etc/os-release to $INSTALL_LOG. This should allow for easier post-mortem debugging if multiple builds used the same file in /tmp and possibly also prevent conflicts. Signed-off-by: Jan Lindemann --- scripts/mkspec-wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mkspec-wrapper.sh b/scripts/mkspec-wrapper.sh index 56bda025..81519e62 100644 --- a/scripts/mkspec-wrapper.sh +++ b/scripts/mkspec-wrapper.sh @@ -75,8 +75,8 @@ shift done shift -ID=`whoami` -[ ! "$INSTALL_LOG" ] && INSTALL_LOG=/tmp/pkg-build-$ID-$NAME/install.log +os=$(sed '/^ID=/ !d; s/^ID=//; s/"//g' /etc/os-release) +[ ! "$INSTALL_LOG" ] && INSTALL_LOG=/tmp/pkg-build-$ID-$(id -un)-$os/install.log MKSPEC_SH="$1" shift