Oh sorry, it’s because of a known bug in the backup script (Linux_for_Tegra/tools/backup_restore/nvbackup_partitions.sh
) that we have fixed.
isext4() {
if [ "$#" -ne 1 ]; then
print_message "isext4 function need 1 parameter that is the name of the storage device"
return 1;
fi
local result
- result="$( blkid "/dev/${1}" | awk '{ print $3 }' | sed -n 's|TYPE="\(.*\)"|\1|p' )"
+ result="$( blkid -o value -s TYPE "/dev/${1}" )"
if [ "${result}" = "ext4" ]; then
echo "true"
else
echo "false"
fi
}
Please apply this patch so rootfs is correctly backed up using tar instead of dd, which is why backup takes so long with the unmodified script.