As i understand, an up to date installation of Raspbian is transferrable between different RPis. In my case this is a first gen, and a third gen RPi.
I would like to test configurations or new software on the first gen and, if successfull, transfer this "updated" installation to the productive RPi (3rd gen).
I would do this via cloning the two sdcards and booting the RPi.
However, some things are copied, which should be unique to the systems, e.g. hostname, ssh-keys and maybe other things i am forgetting.
How would i best go to automate setting these new after booting a cloned image ?