diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-06-11 14:53:55 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-06-11 14:53:55 +0000 |
commit | abdacf5381f9d9c6d0e6988883e4e2eaa712cbdc (patch) | |
tree | cccda5809a86639a89163b7a2ce08e5fd3688469 /mdk-stage1 | |
parent | 9a4ddbc85674f341854696ea2d55af038d23df8d (diff) | |
download | drakx-abdacf5381f9d9c6d0e6988883e4e2eaa712cbdc.tar drakx-abdacf5381f9d9c6d0e6988883e4e2eaa712cbdc.tar.gz drakx-abdacf5381f9d9c6d0e6988883e4e2eaa712cbdc.tar.bz2 drakx-abdacf5381f9d9c6d0e6988883e4e2eaa712cbdc.tar.xz drakx-abdacf5381f9d9c6d0e6988883e4e2eaa712cbdc.zip |
enable MODE_TESTING if the DEBUGSTAGE1 environment variable is set
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/stage1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 5a2cdb074..e484f0f41 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -592,6 +592,8 @@ void finish_preparing(void) int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)), char **env) { + if (getenv("DEBUGSTAGE1")) + set_param(MODE_TESTING); mkdir(SLASH_LOCATION, 0755); if (scall(mount("none", SLASH_LOCATION, "tmpfs", MS_MGC_VAL, NULL), "mount tmpfs")) |