ci(installer-iso): build into /var/lmc-out-PID, copy back to workspace
Some checks failed
Build veilor-os Installer ISO / Build installer ISO (push) Failing after 40s

livemedia-creator refuses any existing resultdir. Even after
rm -rf build/out the runner workspace dir reappears. Use a fresh
PID-suffixed /var/lmc-out path outside workspace, then cp into
build/out for downstream steps.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
claude-veilor-bot 2026-05-07 07:56:53 +01:00
parent 7df9dc08f4
commit ac69a8a351

View file

@ -62,23 +62,29 @@ jobs:
- name: Build installer ISO with livemedia-creator
run: |
set -euxo pipefail
# livemedia-creator refuses an existing non-empty resultdir.
rm -rf build/out
# livemedia-creator refuses an existing resultdir of any kind
# (even empty + just-mkdir'd). Force-clean + use a fresh path
# outside the workspace; copy artefacts back at the end.
OUT=/var/lmc-out-$$
rm -rf "$OUT" /var/lmc
mkdir -p /var/lmc
ln -sfn "$GITHUB_WORKSPACE" /work
# livemedia-creator does NOT support --title (that's livecd-creator).
# --volid replaces it for the ISO volume label.
livemedia-creator \
--make-iso \
--no-virt \
--ks kickstart/install-ostreecontainer-installer.ks \
--resultdir build/out \
--resultdir "$OUT" \
--tmp /var/lmc \
--volid "veilor-os-installer-${RELEASEVER}" \
--project "veilor-os" \
--releasever "$RELEASEVER" \
--logfile build/out/build.log \
2>&1 | tee -a build/out/build.log
--logfile "$OUT/build.log" \
2>&1 | tee /tmp/build.log
# Move artefacts back into workspace for downstream steps.
mkdir -p build/out
cp -a "$OUT"/. build/out/
cp -a /tmp/build.log build/out/build.log 2>/dev/null || true
ls -lh build/out/
- name: Rename ISO + sha256
run: |