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
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:
parent
7df9dc08f4
commit
ac69a8a351
1 changed files with 13 additions and 7 deletions
20
.github/workflows/build-installer-iso.yml
vendored
20
.github/workflows/build-installer-iso.yml
vendored
|
|
@ -62,23 +62,29 @@ jobs:
|
||||||
- name: Build installer ISO with livemedia-creator
|
- name: Build installer ISO with livemedia-creator
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
# livemedia-creator refuses an existing non-empty resultdir.
|
# livemedia-creator refuses an existing resultdir of any kind
|
||||||
rm -rf build/out
|
# (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
|
mkdir -p /var/lmc
|
||||||
ln -sfn "$GITHUB_WORKSPACE" /work
|
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 \
|
livemedia-creator \
|
||||||
--make-iso \
|
--make-iso \
|
||||||
--no-virt \
|
--no-virt \
|
||||||
--ks kickstart/install-ostreecontainer-installer.ks \
|
--ks kickstart/install-ostreecontainer-installer.ks \
|
||||||
--resultdir build/out \
|
--resultdir "$OUT" \
|
||||||
--tmp /var/lmc \
|
--tmp /var/lmc \
|
||||||
--volid "veilor-os-installer-${RELEASEVER}" \
|
--volid "veilor-os-installer-${RELEASEVER}" \
|
||||||
--project "veilor-os" \
|
--project "veilor-os" \
|
||||||
--releasever "$RELEASEVER" \
|
--releasever "$RELEASEVER" \
|
||||||
--logfile build/out/build.log \
|
--logfile "$OUT/build.log" \
|
||||||
2>&1 | tee -a build/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
|
- name: Rename ISO + sha256
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue