base-files: upgrade: add get_image_dd()
authorYousong Zhou <yszhou4tech@gmail.com>
Tue, 3 Nov 2020 03:38:06 +0000 (11:38 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Wed, 11 Nov 2020 13:29:55 +0000 (21:29 +0800)
commit50b870ee3c7a000a6f1a6c5b5e927f3af1b124c0
tree508a5bdb3343d5d17dc560ad0633e0e6b3784937
parentbd21e4a93617a6609725509c67dc293242c80f97
base-files: upgrade: add get_image_dd()

This is mainly to handle stderr message "Broken pipe", "F+P records
in/out" by common pattern "xcat | dd .."

Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3140
Reported-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Reviewed-By: Philip Prindeville <philipp@redfish-solutions.com>
package/base-files/files/lib/upgrade/common.sh