summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/stage1.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index e484f0f41..59b9c52aa 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -595,10 +595,12 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused))
if (getenv("DEBUGSTAGE1"))
set_param(MODE_TESTING);
- mkdir(SLASH_LOCATION, 0755);
- if (scall(mount("none", SLASH_LOCATION, "tmpfs", MS_MGC_VAL, NULL), "mount tmpfs"))
- fatal_error("Fatal error initializing.");
- mkdir(SLASH_LOCATION "/tmp", 0755);
+ if (!IS_TESTING) {
+ mkdir(SLASH_LOCATION, 0755);
+ if (scall(mount("none", SLASH_LOCATION, "tmpfs", MS_MGC_VAL, NULL), "mount tmpfs"))
+ fatal_error("Fatal error initializing.");
+ mkdir(SLASH_LOCATION "/tmp", 0755);
+ }
spawn_interactive();