Skip to content

Commit 02382a5

Browse files
Support cloning to a loopback device
With some additional scripting around rpi-clone, this allows cloning into a loopback-mounted image file. This is a first step towards fixing geerlingguy:#9.
1 parent 11a38f8 commit 02382a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rpi-clone

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,9 @@ then
10751075
else
10761076
assumed_fstab_edit=0
10771077
fi
1078+
elif [[ $dst_disk == *"loop"* ]]
1079+
then
1080+
dst_part_base=${dst_disk}p
10781081
else
10791082
qecho $"
10801083
Target disk $dst_disk ends with a digit so may be a partition.

0 commit comments

Comments
 (0)