I have done a similar thing in the past, but to flash firmware onto any device with a certain USB descriptor that gets plugged in. It was a mess of USB hubs and cables, but it worked.
What I did was write a udev rule that checks for the vendor and product id of a newly plugged in device and calls a script when there’s a match. The script then performs the flashing and logs the output.
In your case:
dd
the source USB to a file (make sure the partition you’re dding is smalled than any target drive- Udev rule according to your needs (all the same product or different drives?)
- Script that dds the file you created earlier back to the newly plugged in drive.
Edit. Did this on a rpi3
… and enhanced by a sentence or two why it is worthwhile. Getting really tired of the no-effort link drops around here. Better yet, the same no-effort link drop to multiple similar communities on various instances.
Is there a block function for link-only posts?
Are there filters to prevent seeing duplicate content?