Skip to content

Commit

Permalink
apply set-partuuid to partition not to device
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi authored Sep 22, 2020
1 parent 6437c42 commit 116468c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/backup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ mirror_SD() {
if [[ "$1" == "raw" ]]; then
echo "Creating a raw partition copy, be prepared this may take long such as 20-30 minutes for a 16 GB SD card"
if ! cond_redirect dd if="${src}" bs=1M of="${dest}"; then echo "FAILED (raw device copy)"; dirty="yes"; fi
if ! (yes | cond_redirect set-partuuid "${dest}" random); then echo "FAILED (set random PARTUUID)"; dirty="yes"; fi
if ! (yes | cond_redirect set-partuuid "${dest}2" random); then echo "FAILED (set random PARTUUID)"; dirty="yes"; fi
if ! cond_redirect fsck -y -t ext4 "${dest}2"; then echo "OK (dirty bit on fsck ${dest}2 is normal)"; dirty="yes"; fi
if [[ "$dirty" == "no" ]]; then
echo "OK"
Expand Down

0 comments on commit 116468c

Please sign in to comment.