Repository navigation
fix(omarchy): make the installer seed's volume id ISO 9660 compliant - #491
Merged
Merged
Conversation
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
Contributor
Review — PASSHead SHA: Change class: config-only — one authored value ( 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.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
charly emitted a warning on every single installer-seed write, in every bed, forever:
ISO 9660 / ECMA 119 d-characters are
A-Z 0-9 _only. The omarchy installer'svolume_id: cidatais lowercase — accepted by xorriso, but non-compliant, so it warns andwrites it anyway.
It fired three times per
check-omarchy-iso-vmrun —vm-build,vm-create, and therebuild 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.ymlis what records which lines charly actually countedas 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:
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.sfswas extracted fromomarchy-4.0.1.isoand its loader read directly./usr/local/bin/omarchy-cidata-load: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 -volidpreserves case exactly, so the label reaches the guest aswritten and
#DistroInstaller.fscan stay at itsiso9660default permanently — the reasonthe 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: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 validateThe disposable bed, before and after
check-omarchy-iso-vmisdisposable: trueand installs Omarchy unattended from the realISO, 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):
After:
The
warnings=1counter is gone from every step, and the run'ssummary.ymlcarries zerooccurrences of the message:
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 rebuildinstalled from a blank disk:
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
wheelmembership fromuser_credentials.json, the hostname and timezone fromuser_configuration.json, the git identity from the two optional.txtfiles, and sshdenabled at all — which only
authorized_keyson that volume turns on.Rulebook compliance
"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.
already correct, so there is nothing else to bring along.
writers now agree on the rule the format actually imposes.
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.
survived this long.
both replaced; nothing is left behind a flag.
git statusinspected before the commit (localgo.mod/go.sumreplaces used for the dev build were deliberately NOT staged); branched from a fresh
origin/main; no force-push, no hook bypass, no direct push tomain.disposable bed, with the counter disappearing AND the install still succeeding — either
alone would be insufficient.
contents are unchanged and its label is asserted to still be discoverable by the guest.
task build:binarystamped charlybuilt from this branch; no runtime dependency changes.
check-omarchy-iso-vmreachesPASS (steps=9)at zeronon-allowlisted warnings, including its own destroy-and-rebuild and 13/13 against the
guest that rebuild installed from a blank disk.
Change classification
installer.volume_id) in the omarchy distro entity, plus the comment that justifies itcharly box validateclean, andcharly check run check-omarchy-iso-vm→PASS (steps=9)with zero non-allowlisted findings insummary.yml, versus three occurrences of the warning beforefully tested and validated— the changed value was exercised live on adisposable: truebed 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)