From 58cd6c2d84cc0bbfc62e5c3fe627039918800ab8 Mon Sep 17 00:00:00 2001 From: claude-veilor-bot <279801990+s8n-ru@users.noreply.github.com> Date: Thu, 7 May 2026 08:09:42 +0100 Subject: [PATCH] ci(installer-iso): move --logfile out of --resultdir livemedia-creator pre-creates the parent dir of --logfile before checking that --resultdir doesn't exist. Putting the log inside resultdir made the dir 'exist' before the check ran. Move logfile to /tmp. Co-Authored-By: Claude Opus 4.7 --- .github/workflows/build-installer-iso.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-installer-iso.yml b/.github/workflows/build-installer-iso.yml index 3c80be4..c1bb3d4 100644 --- a/.github/workflows/build-installer-iso.yml +++ b/.github/workflows/build-installer-iso.yml @@ -71,6 +71,9 @@ jobs: mkdir -p "$TMPD" ln -sfn "$GITHUB_WORKSPACE" /work ls -ld "$OUT" 2>&1 || echo "[OK] $OUT does not exist (expected)" + # IMPORTANT: --logfile MUST NOT live under --resultdir; livemedia + # pre-creates the parent before checking resultdir doesn't exist. + LOGFILE=/tmp/livemedia-$$.log livemedia-creator \ --make-iso \ --no-virt \ @@ -80,10 +83,11 @@ jobs: --volid "veilor-os-installer-${RELEASEVER}" \ --project "veilor-os" \ --releasever "$RELEASEVER" \ - --logfile "$OUT/build.log" \ + --logfile "$LOGFILE" \ 2>&1 | tee /tmp/build.log mkdir -p build/out cp -a "$OUT"/. build/out/ + cp -a "$LOGFILE" build/out/livemedia.log 2>/dev/null || true cp -a /tmp/build.log build/out/build.log 2>/dev/null || true ls -lh build/out/