Index: platform_tools/barelinux/bin/arm64_download |
diff --git a/platform_tools/barelinux/bin/arm64_download b/platform_tools/barelinux/bin/arm64_download |
index b43873c943e992ec23df1f4cd7a9246ef70f925d..3b3b0a5390260572af99d5f4555bef9088f558de 100755 |
--- a/platform_tools/barelinux/bin/arm64_download |
+++ b/platform_tools/barelinux/bin/arm64_download |
@@ -118,6 +118,12 @@ start_arm64_image() { |
--network-nat-subnet="192.168.31.0/24" \ |
--network-nat-ports="8022=22" \ |
> /dev/null 2>&1 & |
+ echo 'Waiting for foundation model to boot...' |
+ while ! ssh -i "${working_dir}/key" \ |
+ -o NoHostAuthenticationForLocalhost=yes \ |
+ -p 8022 user@localhost true 2> /dev/null; do |
+ sleep 5 |
+ done |
echo 'Listening to SSH on port 8022.' |
} |