Skip to content

fix(omarchy): make the installer seed's volume id ISO 9660 compliant - #491

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/omarchy-seed-volid-compliant
Aug 30, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/omarchy-seed-volid-compliant

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

charly emitted a warning on every single installer-seed write, in every bed, forever:

xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules

ISO 9660 / ECMA 119 d-characters are A-Z 0-9 _ only. The omarchy installer's
volume_id: cidata is lowercase — accepted by xorriso, but non-compliant, so it warns and
writes it anyway.

It fired three times per check-omarchy-iso-vm run — vm-build, vm-create, and the
rebuild inside update — and was the only non-allowlisted finding in the entire bed.

How it was found, and why that matters

Not by grepping build logs. summary.yml is what records which lines charly actually counted
as findings and which allowlist rule cleared each one; a log grep cannot distinguish
"allowlisted" from "counted against the gate". Enumerating the run's non-allowlisted findings
programmatically gave exactly one distinct message:

[vm-build]           non-allowlisted findings: 1
    warning: xorriso : WARNING : -volid text does not comply to ISO N / ECMA N rules
[vm-create]          non-allowlisted findings: 1   (same)
[update]             non-allowlisted findings: 1   (same)
[deploy-add]         non-allowlisted findings: 0
[check-live]         non-allowlisted findings: 0
[check-live-rebuild] non-allowlisted findings: 0
[cleanup]            non-allowlisted findings: 0

Everything else in the bed was already clean.

Uppercase is safe — read off the shipping ISO, not assumed

The obvious worry is that the guest discovers the volume by a lowercase label and uppercasing
it would break the unattended install outright. It does not, and this is not an inference:
airootfs.sfs was extracted from omarchy-4.0.1.iso and its loader read directly.

/usr/local/bin/omarchy-cidata-load:

device=""
for label in cidata CIDATA; do
  [[ -e $by_label/$label ]] && { device=$by_label/$label; break; }
done
[[ -n $device ]] || exit 1

It searches both cases. So the guest finds the volume either way, and only one of the two
spellings makes charly stop emitting a warning it has no business emitting.

xorriso -as mkisofs -volid preserves case exactly, so the label reaches the guest as
written and #DistroInstaller.fs can stay at its iso9660 default permanently — the reason
the original comment gave for lowercase is unaffected by this change.

This also removes an inconsistency inside charly's own stack

The sdk reached this conclusion already. vmshared's cloud-init path:

// cloudInitVolumeID is the ISO 9660 volume identifier cloud-init's NoCloud
// datasource looks for. It MUST be uppercase: ISO 9660 / ECMA 119 d-characters
// are A-Z 0-9 _ only, so a lowercase label makes xorriso warn on every single
// VM boot ("-volid text does not comply to ISO 9660 / ECMA 119 rules").
const cloudInitVolumeID = "CIDATA"

Same writer, same warning, same fix — the two paths were simply inconsistent, and the
installer path was the one that had not been brought up to standard.

How tested

charly box validate

$ charly box validate      # in distro-omarchy, against a charly built from this branch
exit=0   (no output beyond the dev-build notice)

The disposable bed, before and after

check-omarchy-iso-vm is disposable: true and installs Omarchy unattended from the real
ISO, so it is the only thing that can prove the uppercase label still gets found by the
guest. Same bed, same host, same seed content — the volume id is the only difference.

Before (three steps carrying the warning):

[vm-build]   PASS after 1.458s [warnings=1 allowlisted=1]
[vm-create]  PASS after 2.459s [warnings=1 allowlisted=1]
[update]     PASS after 4m54.03s [warnings=1 allowlisted=5]
PASS (steps=9)

After:

[vm-build]           PASS after 1.549s [allowlisted=1]
[vm-create]          PASS after 2.878s [allowlisted=1]
[deploy-add]         PASS after 10.4s  [allowlisted=1]
[bring-up-members]   PASS after 0s
[check-live]         PASS after 5.735s [allowlisted=1]
[update]             PASS after 5m6.668s [allowlisted=5]
[check-live-rebuild] PASS after 5.343s [allowlisted=1]
[cleanup]            PASS after 3m1.702s [allowlisted=1]
[cleanup-members]    PASS after 0s
PASS (steps=9)

The warnings=1 counter is gone from every step, and the run's summary.yml carries zero
occurrences of the message:

$ grep -c "does not comply" .check/check-omarchy-iso-vm/2026.242.1743/summary.yml
0

The install still works, which is the assertion that actually matters here.
[check-live-rebuild] runs the full assertion set against the guest the disposable rebuild
installed from a blank disk:

13 steps: 13 passed, 0 failed, 0 skipped

Those 13 include facts that cannot be true unless the guest found and consumed the
answers volume: the four btrfs subvolumes at the mountpoints the answers named, the account
and its wheel membership from user_credentials.json, the hostname and timezone from
user_configuration.json, the git identity from the two optional .txt files, and sshd
enabled at all — which only authorized_keys on that volume turns on.

Rulebook compliance

  • R1 — RCA every anomaly. The warning was root-caused to the d-character rule, and the
    "will uppercase break discovery?" question was answered by extracting the ISO's own loader
    and reading it, not by trying it and hoping. Not dismissed as cosmetic, which is what it had
    been treated as until it became the one thing standing between a bed and a clean gate.
  • R2 — Finish the whole cutover. One value, one comment, one repo; the sdk half was
    already correct, so there is nothing else to bring along.
  • R3 — No duplication. This removes a divergence rather than adding one: the two seed
    writers now agree on the rule the format actually imposes.
  • R4 — No workarounds. The rejected alternatives were adding an allowlist entry for the
    message, and passing xorriso a compliance-relaxation flag. Both silence a true statement
    instead of making it false; an allowlist would also have hidden any future non-compliant
    volume id behind the same rule.
  • R4a — Fix the product first. Documenting "this warning is expected" is exactly how it
    survived this long.
  • R5 — Delete legacy completely. The lowercase value and the comment justifying it are
    both replaced; nothing is left behind a flag.
  • R6 — Git safety. git status inspected before the commit (local go.mod/go.sum
    replaces used for the dev build were deliberately NOT staged); branched from a fresh
    origin/main; no force-push, no hook bypass, no direct push to main.
  • R7 — Prove behavior, not compilation. The proof is a before/after on the same
    disposable bed, with the counter disappearing AND the install still succeeding — either
    alone would be insufficient.
  • R8 — Preserve emitted artifacts. The emitted artifact is the answers volume; its
    contents are unchanged and its label is asserted to still be discoverable by the guest.
  • R9 — Binary equals source. The bed ran against a task build:binary stamped charly
    built from this branch; no runtime dependency changes.
  • R10 — Fresh disposable proof. check-omarchy-iso-vm reaches PASS (steps=9) at zero
    non-allowlisted warnings
    , including its own destroy-and-rebuild and 13/13 against the
    guest that rebuild installed from a blank disk.

Change classification

Change class config-only — one authored value (installer.volume_id) in the omarchy distro entity, plus the comment that justifies it
Verification gate charly box validate clean, and charly check run check-omarchy-iso-vm → PASS (steps=9) with zero non-allowlisted findings in summary.yml, versus three occurrences of the warning before
Attribution tier fully tested and validated — the changed value was exercised live on a disposable: true bed that installs Omarchy unattended from the real ISO, the warning is gone from every step, and the guest still finds and consumes the volume (13/13 after the rebuild)

Assisted-by: Claude Code claude-opus-4-6-20260401 (fully tested and validated)

ISO 9660 / ECMA 119 d-characters are A-Z 0-9 _ only. `cidata` is accepted by
xorriso but non-compliant, and it warns on EVERY seed write:

    xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules

That fired three times in every check-omarchy-iso-vm run — vm-build, vm-create,
and the rebuild inside update — and was the ONLY non-allowlisted finding in the
entire bed. Enumerated from the run's own summary.yml rather than by grepping
logs, because summary.yml is what records which lines charly actually counted
and which allowlist rule cleared them.

Uppercase is SAFE here, and that is read off the shipping ISO rather than
assumed. /usr/local/bin/omarchy-cidata-load, extracted from omarchy-4.0.1.iso's
airootfs.sfs, searches BOTH cases:

    for label in cidata CIDATA; do
      [[ -e $by_label/$label ]] && { device=$by_label/$label; break; }
    done

So the guest finds the volume either way, and only one of the two spellings
makes charly stop emitting a warning it has no business emitting.

The sdk's cloud-init path already reached this conclusion — vmshared's
cloudInitVolumeID is "CIDATA" with the same reasoning in its comment. This
brings the omarchy installer seed to the same standard; the two were
inconsistent for no reason.

Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 55073e365483 (branch: fix/omarchy-iso9660-volume-id)

Change class: config-only — one authored value (installer.volume_id) in the omarchy distro entity in charly/charly.yml, plus its justifying comment.

Security screen: PASS — single config value change; no code, no secrets, no network/egress, no guardrail weakening, no embedded directives, no scope mismatch (diff matches description exactly).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: Body fully accounts for the one-file diff; names the config-only gate, the disposable: true bed (check-omarchy-iso-vm), the fresh task build:binary rebuild, live execution of the changed value, and pasted before/after output. fully tested and validated is justified — the changed CIDATA value executed live and the guest still found/consumed the volume (13/13). Ends with the exact *Assisted-by:* footer.
  • B5/R1: Warning root-caused to the ISO 9660 d-character rule; fix makes it false; zero non-allowlisted warnings after (grep -c "does not comply" summary.yml → 0). Body's warnings=N/allowlisted=M counter semantics are internally consistent (before: 1 non-allowlisted + 1 allowlisted per step; after: warnings counter gone).
  • B6/R2, B7/R3, B8/R4, B9/R4a, B10/R5: No parked work; removes a divergence rather than adding duplication; explicitly rejects allowlisting/relaxation-flag workarounds; fixes the product; lowercase value + its comment both replaced, nothing left behind.
  • B11/R6/R8/R9: git status checked; emitted artifact (answers volume) unchanged and label still discoverable; binary rebuilt from branch, no runtime dep changes.
  • B12/R10: Disposable-only, fresh rebuild, zero warnings, correct bed for the touched path, plausible step counts (9 steps, 13/13 guest assertions).
  • B13/B14/B15: No schema/generated-file changes; no concurrency failures or forbidden framing; one atomic commit.
  • B16 placement: CORRECT — config value in the omarchy candy entity, the right layer.
  • B17/B18: Disposable target named; no Go changes.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 18:02
@github-actions
github-actions Bot merged commit f0d63a0 into main Aug 30, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
github-actions Bot pushed a commit to opencharly/distro-omarchy that referenced this pull request Aug 30, 2026
…e twin (#6)

charly-omarchy is a DEPLOY of omarchy-vm, not a third template. A deploy's
`from:` carries deploy-scope fields only (add_candy, install_opts, disposable,
env, plan); the VM spec — source, disk/ram/cpu, firmware, ssh, libvirt — comes
wholly from the named kind: vm entity. So the ISO, the seed and the credentials
are stated once, in the entity that already ships them.

It is NOT disposable: it is meant to be kept. check-charly-omarchy-vm is what
proves it, so `charly update` can rebuild the bed from scratch without ever
touching an operator's working guest. The twin derives from the TEMPLATE, not
from charly-omarchy — a bed's `from:` names a kind: vm entity, and
charly-omarchy is itself a deploy.

The bed asserts a different thing from check-omarchy-iso-vm. That one proves the
unattended INSTALL. This proves the DEPLOY on top of it: that charly can add a
package repository, import its key, install a native package and enable its
units in a guest whose pacman is pinned to Omarchy's own frozen mirror snapshot.

Writing it found two product defects, both fixed before this landed:

  * charly could not install ANY package on an Omarchy guest — the distro's
    00-omarchy-update-guard.hook aborts every upgrade transaction, and charly's
    pac body is mandatorily `pacman -Syu` (opencharly/charly, the pac
    tool-driven-transaction declaration).
  * every installer-seed write emitted a non-compliant-volume-id warning
    (opencharly/charly#491, merged).

The fourth check is the one worth reading. Adding a third-party repo by
rewriting pacman.conf wholesale would silently drop the Server lines pinning
core/extra to Omarchy's snapshot, and the guest would start tracking upstream
Arch instead — a divergence pacman reports success for either way. Asserting
`pacman-conf --repo core Server` still names omarchy.org is what makes the repo
addition safe rather than merely successful.

Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3

Co-authored-by: atrawog <[email protected]>
@aitrawog
aitrawog deleted the fix/omarchy-seed-volid-compliant branch September 25, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant