Skip to content

eluminocity: fix delta-bridge.conf.default path so first-boot seed works#28

Open
RAR wants to merge 1 commit into
mainfrom
eluminocity-fix-config-seed-path
Open

eluminocity: fix delta-bridge.conf.default path so first-boot seed works#28
RAR wants to merge 1 commit into
mainfrom
eluminocity-fix-config-seed-path

Conversation

@RAR
Copy link
Copy Markdown
Owner

@RAR RAR commented May 21, 2026

Summary

First real M12 bench flash (2026-05-21): the eraseblock fix booted clean — no brick — but the web UI never came up.

Root cause: build-dcofimage.sh wrote the default config to /etc/delta-bridge.conf.default, but first-boot.sh seeds from /etc/delta-bridge/delta-bridge.conf.default. The cp failed, first-boot.sh printed seeded ... anyway, and delta-bridge fell back to compiled-in defaults (web_enable=0, rfid_enable=0).

delta-bridge's own log history confirms web + RFID work fine once a config file is present — this is purely the seed path.

Changes

  • build-dcofimage.sh: write the default to etc/delta-bridge/
  • first-boot.sh: guard the "seeded" message on cp success (was unconditional)
  • verify_dcofimage.py: assert the default at the correct subdir path — the verifier had encoded the same wrong path, so it passed the broken build

Test Plan

  • make test — 657/657 pass
  • make dcofimage — builds; verify_dcofimage.py now checks the correct path
  • Re-flash bench with corrected image → web UI comes up automatically

The default config was written to /etc/delta-bridge.conf.default but
first-boot.sh seeds from $DBDIR/delta-bridge.conf.default
(/etc/delta-bridge/delta-bridge.conf.default). The cp failed silently
and first-boot.sh still printed "seeded ...", so the unit booted on
compiled-in defaults (web_enable=0, rfid_enable=0) — no web UI, no RFID.

Bench-caught 2026-05-21 on the first real M12 flash: the eraseblock fix
booted clean, but the web UI never came up. Root-caused to this one
path mismatch; delta-bridge's own log history confirms web + RFID work
when a config file is present.

- build-dcofimage.sh: write the default to etc/delta-bridge/
- first-boot.sh: guard the "seeded" message on cp success
- verify_dcofimage.py: assert the default at the correct subdir path
  (the verifier had encoded the same wrong path, so it passed the bug)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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