When creating a delivery image for a Raspberry Pi or ArmSoM, start by distinguishing between configurations shared by the operating system and the unique identity of each device.
List three independent identifiers
System machine-id, SSH host key, and business device number each have their own purposes. A functioning mockup may have generated them. Process the first boot semantics of machine-id according to the release image production process, and confirm that SSH keys and business credentials have independent generation or issuance steps.
Use two physical inspection master disks
Write the same image, start it simultaneously on the isolated test network, and read the system identification, host public key fingerprint and business registration results respectively. Two distinguishable records should appear on the server. After restarting one of them, it should retain its identity and should not become the third one.
Set rules in advance during maintenance
When the system disk is replaced, only the carrier board is replaced, or the entire machine is replaced, the asset number may be treated differently. By defining which identities are rebuilt and which are restored from a controlled configuration, you can avoid aftermarket replacements triggering duplicate registrations or mistakenly taking over older equipment.
Board documentation and references

- ArmSoM CM5 · hardware and interface manual · CM5 · product page
- machine-id of systemd and mirror initialization
- Raspberry Pi Remote Access Documentation
- Raspberry Pi official SSH configuration instructions
