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"* ]]
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 theif [[ $dist_dist == *"mmcblk"* ]]