aboutsummaryrefslogtreecommitdiff
path: root/bwrap-files/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bwrap-files/start.sh')
-rwxr-xr-xbwrap-files/start.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bwrap-files/start.sh b/bwrap-files/start.sh
index 03bf77e..f0d0fa1 100755
--- a/bwrap-files/start.sh
+++ b/bwrap-files/start.sh
@@ -20,6 +20,7 @@ args=(
--ro-bind "${ghcup_base}/bin" "${ghcup_base}/bin"
--ro-bind "${ghcup_base}/ghc" "${ghcup_base}/ghc"
--ro-bind "${ghcup_base}/cache" "${ghcup_base}/cache"
+ --ro-bind "${filesdir}/workdir" /workdir
--setenv PATH "/bin:/usr/bin:${ghcup_base}/bin"
--setenv GHCUP_INSTALL_BASE_PREFIX "$(dirname ${ghcup_base})"
--proc /proc
@@ -27,8 +28,7 @@ args=(
--new-session
--unshare-all
--die-with-parent
- --file 4 "/tmp/entry.sh"
- /bin/bash "/tmp/entry.sh"
+ /bin/bash "/workdir/entry.sh"
)
# Turn off core files
@@ -40,4 +40,4 @@ ulimit -u 10000
# Limit memory to 500 MiB.
ulimit -d $(( 500 * 1024 ))
-exec bwrap "${args[@]}" 4<"${filesdir}/entry.sh"
+exec bwrap "${args[@]}"