Support prebuilt airplanes.live images in update and runtime scripts#13
Merged
Conversation
Adds a parallel image-install branch to update.sh, gated on both the boot config file and an executable airplanes-feeder. On image installs, update.sh sources config from the boot partition, skips the readsb compile, and orders its systemd units after airplanes-first-run.service; manual installs follow the existing path unchanged. Runtime scripts and the apl-feed CLI gain matching multi-source config handling, and both unit files now set RestartPreventExitStatus=64 so a config-fatal exit no longer respawns.
3aec45d to
888f445
Compare
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.
Until now update.sh exited immediately on prebuilt airplanes.live images, leaving feeders shipping with prebuilt binaries unable to update through the same path as manual installs. This change adds a parallel image-install branch: when /boot/airplanes-config.txt is present and /usr/bin/airplanes-feeder is executable, update.sh sources config from /boot/, skips the readsb compile step, and orders its systemd units after airplanes-first-run.service. Manual installs follow the existing path unchanged. The runtime scripts (airplanes-feed.sh, airplanes-mlat.sh) and the apl-feed CLI gain matching multi-source config handling.
The dual gate (boot config plus feeder binary) is deliberate: /boot/airplanes-config.txt alone — for example a leftover image artefact on a manual install — falls back to the manual path rather than trying to use a binary that isn't there. A new image-rootfs-smoke CI job exercises the image path end-to-end against the airplanes-update skeleton. Both unit files now set RestartPreventExitStatus=64 so a config-fatal exit from the feeder binary no longer triggers a respawn loop.