diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-06-14 14:50:47 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-06-14 14:50:47 +0000 |
commit | d66ec6b2f6965e11749989545eb623409f4ec221 (patch) | |
tree | 3100f5d53bda2f5887249fa4b9094fb8320564ef | |
parent | 039f5aedf08fdd08fcf28559886e9ec252601268 (diff) | |
download | drakx-d66ec6b2f6965e11749989545eb623409f4ec221.tar drakx-d66ec6b2f6965e11749989545eb623409f4ec221.tar.gz drakx-d66ec6b2f6965e11749989545eb623409f4ec221.tar.bz2 drakx-d66ec6b2f6965e11749989545eb623409f4ec221.tar.xz drakx-d66ec6b2f6965e11749989545eb623409f4ec221.zip |
do not mount sysroot in testing mode
-rw-r--r-- | mdk-stage1/stage1.c | 10 |
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(); |