refactor: delete code for ro bind of repo

This commit is contained in:
2026-03-19 15:30:13 +00:00
parent 08ff22a9aa
commit f8119e8bde
4 changed files with 24 additions and 33 deletions
+3 -2
View File
@@ -1,9 +1,11 @@
#!/bin/sh
set -eu
# Host directory mounted as the sandboxed HOME.
host_home=${MIRO_RECORD_HOST_HOME:?}
# Host temp directory mounted read-write inside the sandbox.
host_tmp=${MIRO_RECORD_HOST_TMP:?}
project_root=${MIRO_RECORD_PROJECT_ROOT:?}
# PATH value forwarded into the sandbox so required tools stay available.
path_env=${MIRO_RECORD_PATH_ENV:?}
if command -v git >/dev/null 2>&1; then
@@ -17,7 +19,6 @@ exec bwrap \
--ro-bind / / \
--tmpfs /home \
--bind "$host_home" {{ .VisibleHome }} \
--ro-bind "$project_root" {{ .VisibleRepo }} \
--bind "$host_tmp" {{ .VisibleTmp }} \
--dev /dev \
--proc /proc \