Use 'dd status=progress' new option instead of piped 'pv' to show where the copying proccess is
This commit is contained in:
parent
09c589553e
commit
2a995cd33a
|
@ -137,12 +137,12 @@ step3(){
|
|||
|
||||
echo " - using gunzip";
|
||||
|
||||
( dd if=$IMAGE_FILE | pv -s $(du -bs $IMAGE_FILE | gunzip | awk '{print $1}') | sudo dd of=$DEV bs=4M ) \
|
||||
( sudo dd if=$IMAGE_FILE of=$DEV bs=4M status=progress ) \
|
||||
|| echo "<<< error: dd command failed" || exit 1;
|
||||
|
||||
else
|
||||
|
||||
( dd if=$IMAGE_FILE | pv -s $(du -bs $IMAGE_FILE | awk '{print $1}') | sudo dd of=$DEV bs=4M ) \
|
||||
( sudo dd if=$IMAGE_FILE of=$DEV bs=4M status=progress ) \
|
||||
|| echo "<<< error: dd command failed" || exit 1;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue