|
|
|
@ -1,3 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
function bootstrap() { |
|
|
|
|
cd /androidx-main |
|
|
|
|
~/bin/repo init -u https://android.googlesource.com/platform/manifest \ |
|
|
|
|
-b androidx-main --depth=1 --partial-clone --clone-filter=blob:limit=10M |
|
|
|
@ -7,3 +10,14 @@ mkdir -p /mnt/agent
|
|
|
|
|
ln -sf /androidx-main/tools/ /mnt/agent/tools |
|
|
|
|
ln -sf /androidx-main/prebuilts/ /mnt/agent/prebuilts |
|
|
|
|
ln -sf /androidx-main/external /mnt/agent/external |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if [ ! -e /tmp/init ]; then |
|
|
|
|
touch /tmp/init |
|
|
|
|
echo "bootstrapping" |
|
|
|
|
sleep 10 |
|
|
|
|
else |
|
|
|
|
echo "not bootstrapping, all done" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
/bin/bash |
|
|
|
|