rpi-clone
rpi-clone copied to clipboard
Wrong partition names chosen when dst_disk ends with digit
AFAIK Linux adds a "p" when the original device name ends with a digit. This happened to me when using rpi-clone with a network block device /dev/nbd0 (using nbd-client and nbd-server on a different machine). I patched it manually, however it should be enough to move the dst_part_base=${dst_disk}p
line four lines up before the if [[ $dist_dist == *"mmcblk"* ]]