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 2356bab commit 76b2a9cCopy full SHA for 76b2a9c
1 file changed
host/pyhl-entrypoint.sh
@@ -1,13 +1,13 @@
1
-#!/bin/bash
+#!/bin/sh
2
set -e
3
4
if [ ! -f "$PYHL_HOME/snapshot/index.json" ]; then
5
staging=$(mktemp -d)
6
+ trap 'rm -rf "$staging"' EXIT
7
mkdir -p "$staging/.unikraft/build"
8
ln -s "$PYHL_HOME/kernel" "$staging/.unikraft/build/driver_hyperlight-x86_64"
9
ln -s "$PYHL_HOME/initrd.cpio" "$staging/driver-initrd.cpio"
10
pyhl setup --dest "$PYHL_HOME" --from "$staging" --net --force
- rm -rf "$staging"
11
fi
12
13
if [ "$1" = "--setup-only" ]; then
0 commit comments