Skip to content

Run boot-config migrator before delegating to feed update#2

Merged
d4rken merged 4 commits into
devfrom
feat/run-config-migrator-before-feed-update
May 11, 2026
Merged

Run boot-config migrator before delegating to feed update#2
d4rken merged 4 commits into
devfrom
feat/run-config-migrator-before-feed-update

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented May 10, 2026

Vendors airplanes-webconfig's migrate-config.sh into the skeleton (installed under the airplanes-update lib path) and invokes it on airplanes-config.txt during update-airplanes.sh, between the template-key-add block and the feed update delegation. The legacy USER= form is translated to the split MLAT_USER + MLAT_ENABLED schema before the new feed daemons ever see the config, so users who click Update Feeder without having recently clicked Update Webconfig still get a clean migration.

A CI drift job diffs the vendored copy byte-for-byte against airplanes-webconfig's dev canonical via raw.githubusercontent.com, so the two copies cannot silently diverge. PR depends on the matching airplanes-webconfig change (airplanes-live/airplanes-webconfig#3) being on dev; the drift check will fail otherwise.

Vendors airplanes-webconfig's migrate-config.sh into the skeleton at /usr/local/lib/airplanes-update/migrate-config.sh and runs it on airplanes-config.txt during update-airplanes.sh, before the feed update delegation. This ensures legacy USER= configs are translated to the MLAT_USER + MLAT_ENABLED schema regardless of whether the user has updated webconfig recently.

A CI drift job diffs the vendored copy against the airplanes-webconfig dev branch via raw.githubusercontent.com so the two copies cannot silently diverge.
d4rken added 3 commits May 11, 2026 08:52
Mirrors the empty-USER Anonymous default added in airplanes-webconfig#3. Keeps the drift check green; behavior described in that PR.
The migrator runs via 'bash "$migrator"', which needs readability, not the executable bit. If install drops the exec bit, the -x check skipped migration silently and the next feed daemon start strict-failed with a confusing 'Run Update Webconfig' message.
The migrator normalizes USER=preserved-user to USER="preserved-user" and emits MLAT_USER + MLAT_ENABLED. The smoke assertions were pinned to the pre-migration form. Update both rootfs smoke scripts to assert the post-migration shape; this also strengthens the test by verifying the migrator runs end-to-end as part of update-airplanes.sh.
@d4rken d4rken merged commit e3d2453 into dev May 11, 2026
7 of 8 checks passed
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