From a23ce6310a3a5027b51cc9593cec068483c75c94 Mon Sep 17 00:00:00 2001 From: veilor-org Date: Fri, 1 May 2026 21:26:34 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20patch=20livecd-creator=20=5F=5Fget=5Fefi?= =?UTF-8?q?=5Fimage=5Fstanza=20LABEL=20=E2=86=92=20CDLABEL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream bug in /usr/lib/python3.14/site-packages/imgcreate/live.py: if self._isDracut: args["rootlabel"] = "live:LABEL=%(fslabel)s" # WRONG else: args["rootlabel"] = "CDLABEL=%(fslabel)s" For dracut path on EFI grub it writes `root=live:LABEL=...` but dracut needs `live:CDLABEL=...` to look up ISO9660 by CD volume id. Result: parse-livenet hook stalls indefinitely. CI now sed-patches the file in-place before build. Reported upstream livecd-tools as separate task. --- .github/workflows/build-iso.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build-iso.yml b/.github/workflows/build-iso.yml index 06b0b46..6e64457 100644 --- a/.github/workflows/build-iso.yml +++ b/.github/workflows/build-iso.yml @@ -57,6 +57,7 @@ jobs: lorax \ livecd-tools \ pykickstart \ + python3-imgcreate \ anaconda-tui \ squashfs-tools \ xorriso \ @@ -67,6 +68,15 @@ jobs: cd /work + # PATCH: livecd-creator bug — __get_efi_image_stanza writes + # `root=live:LABEL=...` instead of `live:CDLABEL=...` for dracut. + # Result: dracut hangs on parse-livenet looking for non-CD label. + # Fix in-place before running build. + LIVE_PY=$(python3 -c 'import imgcreate, os; print(os.path.dirname(imgcreate.__file__))')/live.py + sed -i 's|"live:LABEL=%(fslabel)s"|"live:CDLABEL=%(fslabel)s"|g' "$LIVE_PY" + grep -n 'CDLABEL=%(fslabel)s' "$LIVE_PY" || { echo "[ERR] patch failed"; exit 1; } + echo "[OK] livecd-creator patched: LABEL= → CDLABEL= for EFI dracut stanza" + # CI uses ks-ci.ks (no local fix-repo line). Generated from main ks. # Also strip flags livecd-creator doesn't recognize. sed -e '/veilor-fix/d' \