From 116468c14e87f1e6f7d611f1e66ed73606475986 Mon Sep 17 00:00:00 2001 From: Markus Storm Date: Tue, 22 Sep 2020 21:48:03 +0200 Subject: [PATCH] apply set-partuuid to partition not to device Signed-off-by: Markus Storm --- functions/backup.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/backup.bash b/functions/backup.bash index 43b4c5d14..ae9b3750e 100644 --- a/functions/backup.bash +++ b/functions/backup.bash @@ -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"