From 3f6214b590a14064f5e26f3d147b09be20dfdc75 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 21 Mar 2024 13:49:12 +0100 Subject: [PATCH] Support cloning to a loopback device With some additional scripting around rpi-clone, this allows cloning into a loopback-mounted image file. --- rpi-clone | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpi-clone b/rpi-clone index b6baf53..f23cc80 100755 --- a/rpi-clone +++ b/rpi-clone @@ -1071,6 +1071,9 @@ then else assumed_fstab_edit=0 fi + elif [[ $dst_disk == *"loop"* ]] + then + dst_part_base=${dst_disk}p else qecho $" Target disk $dst_disk ends with a digit so may be a partition. -- 2.39.5