Repository navigation
fix(vmshared): give the NoCloud seed ISO an ISO 9660-compliant volume label - #15
Conversation
… label
Every charly VM boot emitted, twice:
xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules
resolveISOBuilder passed "-volid cidata" at all three builder arms. ISO 9660 /
ECMA 119 d-characters are A-Z 0-9 _ only, so a lowercase volume identifier is
non-compliant.
Non-corrupting but not harmless: the label was written verbatim, so guests always
booted. The cost was the warning. A warning is not a pass (R1), and while it
persisted the zero-warnings R10 gate was un-meetable for every vm bed - which
trains readers to skim past bed-log warnings, exactly how a real one hides.
Fixed with ONE shared constant cloudInitVolumeID = "CIDATA" (R3: three arms
passed three separate literals, so a fourth could silently reintroduce it).
Uppercase is safe, verified rather than assumed: cloud-init's NoCloud datasource
searches BOTH cases. Read inside a live Arch guest, DataSourceNoCloud._get_devices
does find_devs_with("LABEL=" + label.upper()) then ...label.lower(), with
fs_label defaulting to "cidata". A wrong label would break cloud-init on every VM,
so it was proven on a live guest before any code was written (RDD).
Check-coverage: three tests, all failing against the lowercase constant - the
identifier is uppercase + d-character-only and still case-insensitively equals
cloud-init's default fs_label; the resolved builder's argv carries the shared
constant; and WriteSeedISO actually invokes xorriso, requires ZERO warnings, and
reads the PVD volume identifier back out of the built ISO.
R10: a live VM bed (check-charly-vm) regenerated its seed and booted from it -
exit 0, seed label 'CIDATA', and ZERO xorriso warnings in the whole run, the
first warning-free VM bed.
Assisted-by: Claude (fully tested and validated)
pr-validator — APPROVED ✅Change class: charly/sdk Go (vmshared) — 3 files: Independent re-derivation (I trusted nothing in the PR body — every claim re-run here):
TEETH (my run): with R10 bed (verified from artifacts): Decision: APPROVED. The change removes a real, non-corrupting-but-persistent ISO 9660 non-compliance warning by unifying three literals into one uppercase-compliant constant; the safety of the case change is proven both by upstream source (both-case NoCloud search) and empirically end-to-end on a live disposable VM bed. Merging (squash) and tagging the sdk-scheme version. Assisted-by: Claude (analysed on a live system) |
Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
…ever FAT (#22) Claim-keyed R1/R5 doc sweep riding the sdk cutover (opencharly/sdk#15) that made the NoCloud seed ISO's volume identifier ISO 9660-compliant. The /charly-internals:cloud-init-renderer skill carried two false claims: - "a FAT-labeled cidata ISO" — it is an ISO 9660 image (xorriso -as mkisofs -joliet -rock), never FAT. - the label is "cidata" — it is now CIDATA. ISO 9660 / ECMA 119 d-characters are A-Z 0-9 _ only, so a lowercase label made xorriso warn on every VM boot. cloud-init still finds it: NoCloud searches LABEL=<fs_label>.upper() and .lower(), fs_label defaulting to "cidata". The skill now names the shared source (vmshared.cloudInitVolumeID) and states why the identifier must be uppercase, so the constraint travels with the claim. Documentation-only change class; gate is the non-runtime standards. Producer opencharly/sdk#15 merged first (sdk main const cloudInitVolumeID = "CIDATA"). Validated independently: live artifact seed.iso reports ISO 9660 labeled CIDATA. Assisted-by: Claude (documentation reviewed)
Summary
Every charly VM boot emitted, twice:
resolveISOBuilderpassed-volid cidataat all three builder arms (xorriso-as mkisofs,xorriso native, the genisoimage/mkisofs fallback). ISO 9660 / ECMA 119 d-characters are
A-Z 0-9 _only, so a lowercase volume identifier is non-compliant.Non-corrupting, but not harmless. The label was written verbatim (
file seed.iso→ISO 9660 CD-ROM filesystem data 'cidata'), so guests always booted. The cost was thewarning itself: a warning is not a pass (R1), and while it persisted the zero-warnings R10
gate was un-meetable for every vm bed — which trains readers to skim past bed-log
warnings, which is exactly how a real one hides.
Fix: ONE shared constant
cloudInitVolumeID = "CIDATA"(R3 — the three arms each passedtheir own literal, so a fourth arm could silently reintroduce the lowercase label).
Why uppercase is safe — verified, not assumed (RDD)
A wrong label breaks cloud-init on every VM, so this was proven on a live guest before
any code was written, rather than recalled from upstream memory. Read inside a booted Arch
guest,
/usr/lib/python3.14/site-packages/cloudinit/sources/DataSourceNoCloud.py:NoCloud searches both cases. The spike VM was destroyed afterwards.
Change class
sdkGo. Gate:go test ./...+ a live VM bed in the consuming superproject (in-treereplace github.com/opencharly/sdk => ../sdk).Check-coverage — three tests, all of which FAIL against the lowercase constant
TestISOBuilderVolumeIDIsISOCompliant— uppercase, d-characters only, and stillcase-insensitively equal to cloud-init's default
fs_label.TestResolveISOBuilderPassesSharedVolumeID— the resolved builder's argv carries the sharedconstant, so a new arm cannot reintroduce a literal.
TestWriteSeedISO_NoXorrisoWarning— actually invokes xorriso, requires ZERO warnings, thenreads the PVD volume identifier back out of the built ISO.
Reverting the constant to
"cidata"reproduces the production warning verbatim:With the fix:
R10 evidence — a live VM booted from a CIDATA seed
charlyrebuilt against this working tree (replace => ../sdk), stale seeds deleted so thebed had to regenerate them, then
charly check run check-charly-vm:grep -c 'xorriso : WARNING'over the whole run → 0. The guest booted and wascharly check live-verified, which is only possible if cloud-init found and consumed theCIDATAseed (it provisions the ssh key the bed then connects with). No orphan domain.This is the first warning-free VM bed run in the project.
R0–R10 notes
CIDATA?) was settled on a livedisposable guest before code was written, not from memory.
check-groupcutover(
v2026.191.1015), where it was disclosed rather than rounded to zero.-volidliteral survives; theWriteSeedISOdoc comment (which saidthe label is
"cidata") is corrected in the same commit. The consuming/charly-internals:cloud-init-rendererskill (which also called it a "FAT-labeled" ISO) isswept in the
pluginsrepo, landing after this.Tier
fully tested and validated— differential run both ways, live VM bed against the final code,both outputs pasted.
Assisted-by: Claude (fully tested and validated)