rpi-clone icon indicating copy to clipboard operation
rpi-clone copied to clipboard

Wrong partition names chosen when dst_disk ends with digit

Open alexsee75 opened this issue 4 years ago • 0 comments

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"* ]]

alexsee75 avatar May 24 '20 14:05 alexsee75