Hi everyone,
I'm using a RevPi Connect S with the latest RevPi Bookworm OS installed on the internal eMMC.
I'm looking for a way to fully automate the initial setup for headless deployment.
After flashing the image and booting for the first time, I log in with the default credentials (pi / raspberry). After login, a setup wizard appears asking me to:
Select the device type
Enter the device serial number
Enter the MAC address
For production, I'd like to avoid this manual step.
Is there a supported way to preconfigure these values before the first boot? For example:
Using a first-boot configuration file or script
In addition, I'd like to run a one-time initialization script after the first successful boot/login to perform tasks such as installing packages, applying configuration, and enabling services. Once the script has completed, it should not run again on subsequent boots.
Ultimately, I want to flash the eMMC, power on the device, and have it complete the initial setup automatically without requiring a keyboard, monitor, or manual login.
Has anyone implemented a similar headless provisioning workflow, or is there an officially supported approach?
Thanks!