userpatches: pre-install gh + first-boot provisioning stub#14
Merged
Conversation
2d5c4e1 to
4fac59f
Compare
- customize-image.sh: 'apt install gh' from armbian's repo and stage provisioning.sh at /root/provisioning.sh. - provisioning.sh: stub that writes /provisioned with an ISO-8601 UTC timestamp; replace once the wiring is verified. Armbian's existing first-boot mechanism runs /root/provisioning.sh on first login (same pattern as armbian-config's module_armbian_kvmtest).
4fac59f to
ea23d2b
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.
Summary
Two new userpatch files that wire up an automatic first-boot hook on the SDK image:
userpatches/customize-image.sh— runs in the rootfs chroot at the end of build:cli.github.comapt repo and installsgh(GitHub CLI) so SDK images ship with it ready out of the box.userpatches/overlay/provisioning.shto/root/provisioning.sh(executable). Armbian's existing first-boot mechanism runs that script once on first login — same pattern used by armbian-config'smodule_armbian_kvmtest. No bespoke systemd unit, no done-marker logic.userpatches/overlay/provisioning.sh— placeholder body for now. Just writes/provisionedwith a UTC timestamp so the install path can be verified end-to-end. Replace with real provisioning when ready.How the wiring works
The build framework's
lib/functions/rootfs/customize.shbind-mountsuserpatches/overlay/read-only at/tmp/overlay/inside the chroot, then runscustomize-image.sh. The hook does:The existing Armbian first-boot mechanism takes it from there.
Test plan
ghis preinstalled in the booted image (gh --version)./provisionedexists after first login, with a UTC timestamp inside.