Skip to content

Commit 721428a

Browse files
committed
Don't convert partuuids for nonexistent src parts
1 parent 07f536e commit 721428a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rpi-clone

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,10 @@ then
957957
count=0
958958
for ((p = 1; p <= n_src_parts; p++))
959959
do
960+
if ((!src_exists[p]))
961+
then
962+
continue
963+
fi
960964
if grep -q "^/dev/${src_partition[p]}" $fstab_tmp
961965
then
962966
partuuid=$(lsblk -n -o PARTUUID /dev/${src_partition[p]})

0 commit comments

Comments
 (0)