Skip to content

Commit

Permalink
Merge pull request #8 from aaronkollasch/fix-partuuid-convert
Browse files Browse the repository at this point in the history
Don't convert partuuids for nonexistent source partitions
  • Loading branch information
geerlingguy authored Mar 8, 2024
2 parents 423470c + 721428a commit 966b2b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpi-clone
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,10 @@ then
count=0
for ((p = 1; p <= n_src_parts; p++))
do
if ((!src_exists[p]))
then
continue
fi
if grep -q "^/dev/${src_partition[p]}" $fstab_tmp
then
partuuid=$(lsblk -n -o PARTUUID /dev/${src_partition[p]})
Expand Down

0 comments on commit 966b2b2

Please sign in to comment.