From d66ec6b2f6965e11749989545eb623409f4ec221 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 14 Jun 2004 14:50:47 +0000 Subject: do not mount sysroot in testing mode --- mdk-stage1/stage1.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mdk-stage1/stage1.c') 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(); -- cgit v1.2.1