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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-19 14:43:26 +01:00
commit ca6f27d2f0

View file

@ -75,8 +75,8 @@ shift
done done
shift shift
ID=`whoami` os=$(sed '/^ID=/ !d; s/^ID=//; s/"//g' /etc/os-release)
[ ! "$INSTALL_LOG" ] && INSTALL_LOG=/tmp/pkg-build-$ID-$NAME/install.log [ ! "$INSTALL_LOG" ] && INSTALL_LOG=/tmp/pkg-build-$ID-$(id -un)-$os/install.log
MKSPEC_SH="$1" MKSPEC_SH="$1"
shift shift