Add sandboxed version of nix-portable with tweaks to run on marenostrum #236

Manually merged
abonerib merged 22 commits from abonerib/jungle:nix-portable into master 2026-03-11 17:27:54 +01:00
Showing only changes of commit 71352ff5d1 - Show all commits

View File

@@ -285,16 +285,7 @@ let
collectBinds(){
### gather paths to bind for proot
# we cannot bind / to / without running into a lot of trouble, therefore
# we need to collect all top level directories and bind them inside an empty root
# for termux a fallback is needed as enumerating top level directories fails
if ! pathsTopLevel="\$(find / -mindepth 1 -maxdepth 1 -not -name nix -not -name dev 2>&3)"; then
debug "Error: unable to list top level directories. Falling back to default binds."
pathsTopLevel="/etc /proc"
fi
pathsTopLevel="/boot /run /sys \$PWD /gpfs /tmp /scratch"
toBind=""
for p in \$pathsTopLevel; do