Skip to content

Commit

Permalink
Don't convert partuuids for nonexistent src parts
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkollasch committed Mar 8, 2024
1 parent 07f536e commit 721428a
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 721428a

Please sign in to comment.