We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2791a7 commit 2356babCopy full SHA for 2356bab
1 file changed
host/pyhl-entrypoint.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
set -e
3
4
-if [ ! -d "$PYHL_HOME/snapshot" ]; then
+if [ ! -f "$PYHL_HOME/snapshot/index.json" ]; then
5
staging=$(mktemp -d)
6
mkdir -p "$staging/.unikraft/build"
7
ln -s "$PYHL_HOME/kernel" "$staging/.unikraft/build/driver_hyperlight-x86_64"
@@ -10,4 +10,8 @@ if [ ! -d "$PYHL_HOME/snapshot" ]; then
10
rm -rf "$staging"
11
fi
12
13
+if [ "$1" = "--setup-only" ]; then
14
+ exit 0
15
+fi
16
+
17
exec pyhl run --dest "$PYHL_HOME" --net "$@"
0 commit comments