sd mirroring -> switch sdcard from sd card reader to rasberry slot -> system didn't boot
so this backup method is not helpful in an emergency
I'm not sure if it's a peculiarity in my system or if it affects everyone.
scripts that are involved:
sdrawcopy.service -> mirror_SD -> backup.bash
Debug information:
I nailed it down to the scrript backup.bash
After the sucessfull dd copies, the PARTUUID should bet set.
SILENT=1
+ SILENT=1
export SILENT
+ export SILENT
if ! partUUID="$(yes | cond_redirect set-partuuid "${dest}2" random | awk '/^PARTUUID/ { print substr($7,1,length($7) - 3) }')"; then echo "FAILED (set random PARTUUID)"; dirty="yes"; fi
++ yes
++ cond_redirect set-partuuid /dev/sdb2 random
++ [[ -n 1 ]]
++ set-partuuid /dev/sdb2 random
++ awk '/^PARTUUID/ { print substr($7,1,length($7) - 3) }'
++ return 0
+ partUUID=
SILENT=
+ SILENT=
export SILENT
+ export SILENT
if ! partUUID="$(yes | set-partuuid "${dest}2" random | awk '/^PARTUUID/ { print substr($7,1,length($7) - 3) }')"; then echo "FAILED (set random PARTUUID)"; dirty="yes"; fi
++ yes
++ set-partuuid /dev/sdb2 random
++ awk '/^PARTUUID/ { print substr($7,1,length($7) - 3) }'
+ partUUID=dfcbed96`
with the standard SILENT option the PARTUUID not returned and with SILENT not set the PARTUUID is ok
looks like the cond_redirect to /dev/null didn't work properly ith the yes pipe
without the PARTUUID the script could not change the PARTUUID in the /etc/fstab and didn't boot
Issue information:
sd mirroring -> switch sdcard from sd card reader to rasberry slot -> system didn't boot so this backup method is not helpful in an emergency I'm not sure if it's a peculiarity in my system or if it affects everyone. scripts that are involved: sdrawcopy.service -> mirror_SD -> backup.bash
Debug information:
I nailed it down to the scrript backup.bash After the sucessfull dd copies, the PARTUUID should bet set.
with the standard SILENT option the PARTUUID not returned and with SILENT not set the PARTUUID is ok
looks like the cond_redirect to /dev/null didn't work properly ith the yes pipe
without the PARTUUID the script could not change the PARTUUID in the /etc/fstab and didn't boot
System information: