summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/modules.c2
-rw-r--r--mdk-stage1/modules.h2
-rw-r--r--mdk-stage1/stage1.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index fac10ba47..802f39b18 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -39,7 +39,7 @@
static struct module_deps_elem * modules_deps = NULL;
static char * archive_name = "/modules/modules.mar";
-static int disable_modules = 0;
+int disable_modules = 0;
/* unarchive and insmod given module
diff --git a/mdk-stage1/modules.h b/mdk-stage1/modules.h
index bbbac2ef5..a5fccb609 100644
--- a/mdk-stage1/modules.h
+++ b/mdk-stage1/modules.h
@@ -30,6 +30,6 @@ struct module_deps_elem {
char ** deps;
};
-
+extern int disable_modules;
#endif
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 85520e6a8..e06bf99a1 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -419,6 +419,8 @@ int main(int argc, char **argv, char **env)
*argptr++ = "--pcmcia";
*argptr++ = pcmcia_adapter;
}
+ if (disable_modules)
+ *argptr++ = "--blank";
*argptr++ = NULL;
execve(stage2_args[0], stage2_args, grab_env());