We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2e494e commit 46c7e0fCopy full SHA for 46c7e0f
rpi-clone
@@ -1,6 +1,6 @@
1
#!/bin/bash
2
3
-version=2.0.9
+version=2.0.10
4
5
# auto run grub-install if grub detected
6
grub_auto=1
@@ -1213,6 +1213,10 @@ Use -U for unattended even if initializing.
1213
printf "\n====$PGM\n==orig:\n%s\n\n==edited:\n%s\n" \
1214
"$sfd0" "$sfd1" >> /tmp/$PGM-fail
1215
printf "\n Resize failed. See /tmp/$PGM-fail.\n\n"
1216
+
1217
+ # Don't let dst disk keep source disk ID. Can lead to remounts.
1218
+ new_id=$(od -A n -t x -N 4 /dev/urandom | tr -d " ")
1219
+ qprintf "x\ni\n0x$new_id\nr\nw\nq\n" | fdisk /dev/$dst_disk > /dev/null
1220
exit 1
1221
fi
1222
done
0 commit comments