stateful_update: Increase the timeout stateful update timeout

Daisy-stake devices are failing because it takes more than two minutes to unzip
the update.tgz and write it to the stateful (It takes 2m51 on a DUT with the
payload in /tmp). Increase this timeout so we don't hit this problem again if
the size of the stateful update grows or the disk is slow.

Also added check for the exit code of the call that does the actual work so we
know if it fails for any other reason.

TEST=deployed to a DUT and stateful_update passed successfully.

Change-Id: Ib7479f5b46be83fd0c2bdc062e42c211b1229c44
Commit-Ready: Amin Hassani <>
Tested-by: Amin Hassani <>
Reviewed-by: David Haddock <>
Reviewed-by: Mike Frysinger <>
(cherry picked from commit 3e3f5d022658adfed300971592a345a2426f2f10)
Reviewed-by: Amin Hassani <>
Commit-Queue: Amin Hassani <>
1 file changed