We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6e0886 commit bee03cbCopy full SHA for bee03cb
1 file changed
try
@@ -78,10 +78,6 @@ try() {
78
## because we have already checked if it valid.
79
export SANDBOX_DIR
80
81
- # We created "$IGNORE_FILE" up front, but now we can stash it in the sandbox.
82
- mv "$IGNORE_FILE" "$SANDBOX_DIR"/ignore
83
- IGNORE_FILE="$SANDBOX_DIR"/ignore
84
-
85
try_mount_log="$SANDBOX_DIR"/mount.log
86
export try_mount_log
87
@@ -95,6 +91,10 @@ try() {
95
91
mount -t tmpfs tmpfs "$SANDBOX_DIR"
96
92
fi
97
93
94
+ # Move ignore patterns after any tmpfs mount; mounting SANDBOX_DIR hides prior contents.
+ mv "$IGNORE_FILE" "$SANDBOX_DIR"/ignore
+ IGNORE_FILE="$SANDBOX_DIR"/ignore
+
98
mkdir -p "$SANDBOX_DIR/upperdir" "$SANDBOX_DIR/workdir" "$SANDBOX_DIR/temproot"
99
100
## Find all the directories and mounts that need to be mounted
0 commit comments