summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-06-14 14:50:47 +0000
committerOlivier Blin <oblin@mandriva.org>2004-06-14 14:50:47 +0000
commitd66ec6b2f6965e11749989545eb623409f4ec221 (patch)
tree3100f5d53bda2f5887249fa4b9094fb8320564ef
parent039f5aedf08fdd08fcf28559886e9ec252601268 (diff)
downloaddrakx-backup-do-not-use-d66ec6b2f6965e11749989545eb623409f4ec221.tar
drakx-backup-do-not-use-d66ec6b2f6965e11749989545eb623409f4ec221.tar.gz
drakx-backup-do-not-use-d66ec6b2f6965e11749989545eb623409f4ec221.tar.bz2
drakx-backup-do-not-use-d66ec6b2f6965e11749989545eb623409f4ec221.tar.xz
drakx-backup-do-not-use-d66ec6b2f6965e11749989545eb623409f4ec221.zip
do not mount sysroot in testing 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();