From 85d49cf5c5fb3d04dd4d1cc40e7835741a1fe68c Mon Sep 17 00:00:00 2001 From: rickpeters Date: Tue, 29 Sep 2026 22:39:39 +0200 Subject: [PATCH] fix: sudo mkarchiso keeps STEAMIFY_ISO_VERSION and STEAMIFY_BUILD_STAMP (sudo dropped them: the ISO was named local, labelled LOCAL) --- util-iso.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util-iso.sh b/util-iso.sh index 4f6792c..2be2f76 100755 --- a/util-iso.sh +++ b/util-iso.sh @@ -201,7 +201,8 @@ run_build() { [ -d "$outFolder/$_profile" ] || mkdir -p "$outFolder/$_profile" cd ${work_dir}/archiso/ - sudo mkarchiso -v -w ${work_dir} -o "$outFolder/$_profile" ${work_dir}/archiso/ + # sudo drops the environment: the release tag's file name and label (profiledef.sh) must get through. + sudo --preserve-env=STEAMIFY_ISO_VERSION,STEAMIFY_BUILD_STAMP mkarchiso -v -w ${work_dir} -o "$outFolder/$_profile" ${work_dir}/archiso/ # $USER is empty when this runs as root (e.g. in a container): an empty # chown failed and aborted the rest (the build was done, the exit code 1). sudo chown "${SUDO_USER:-${USER:-$(id -un)}}" "$outFolder"