Rather than writing stock image to an SD card, sometimes I need to create another physical disk from my backups. My procedure is as follows:
- detect which device to format
- create appropriate partitions
- format these partitions with appropriate filesystems
- mount partitions
- copy files from backup to these mountpoints
- INSTALL APPROPRIATE BOOTLOADER
My current automation script is here.
How can I install the bootloader for Raspberry Pi?