billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.49k stars 327 forks source link

Feature request. Include armbian support (auto update armbianEnv.txt with UUID) #94

Open LostInSwiss opened 4 years ago

LostInSwiss commented 4 years ago

Hi. Great simple tool.. I am using it with armbian but in order to make the destination bootable i have to manually edit armbianEnv.txt and fstab to use the new uuid. How could i update the script to achieve this?

billw2 commented 4 years ago

Whatever customizing you need should be done in the rpi-clone-setup script and then run rpi-clone with the -s option. The default rpi-clone-setup just changes the hostname, but it can do whatever you want. Change hostname or not, edit fstab, and so on. My rpi-clone-setup edits hostname, edits the fstab, setup up static IPs for each of my Pi's, setups up non standards ports for ssd and nginx server, and so on.