mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user