Improve SWI handling for reduced processor/memory environments.

- Increase SWI bootmode timeout
- Unzip the rootfs directly into the target directory instead of through a pipe.
This commit is contained in:
Jeffrey Townsend
2017-05-26 16:02:07 +00:00
parent 576eb2e6d5
commit 725f3171fa
2 changed files with 6 additions and 3 deletions

View File

@@ -149,8 +149,11 @@ esac
if test "${mode_install}${mode_overlay}"; then
for arch in $ARCH_LIST; do
unzip -pq "$swipath" "rootfs-${arch}.sqsh" > "$workdir/rootfs.sqsh"
if test -s "$workdir/rootfs.sqsh"; then break; fi
unzip -q "$swipath" "rootfs-${arch}.sqsh" -d "$workdir"
if test -s "$workdir/rootfs-${arch}.sqsh"; then
mv "$workdir/rootfs-${arch}.sqsh" "$workdir/rootfs.sqsh"
break;
fi
done
if test ! -s "$workdir/rootfs.sqsh"; then
echo "*** cannot find a valid rootfs" 1>&2

View File

@@ -19,7 +19,7 @@ fi
#
for url in $SWI; do
msg_info "Trying ${url}..."
timeout -t 60 boot "${url}" && exit 0
timeout -t 180 boot "${url}" && exit 0
done
exit 1