summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/modules.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-28 13:08:28 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-28 13:08:28 +0000
commitc01c70b3db92361f6131064f2f48e8cd4794f481 (patch)
treee2df359a0c5736e7a259b68077934af4786aac45 /mdk-stage1/modules.c
parentb4265b033c207c7af9fa4e2397322ed2c826eb1d (diff)
downloaddrakx-c01c70b3db92361f6131064f2f48e8cd4794f481.tar
drakx-c01c70b3db92361f6131064f2f48e8cd4794f481.tar.gz
drakx-c01c70b3db92361f6131064f2f48e8cd4794f481.tar.bz2
drakx-c01c70b3db92361f6131064f2f48e8cd4794f481.tar.xz
drakx-c01c70b3db92361f6131064f2f48e8cd4794f481.zip
only prompt for "Additional Drivers floppy" for network
Diffstat (limited to 'mdk-stage1/modules.c')
-rw-r--r--mdk-stage1/modules.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index cd8e981d3..3ba947e1f 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -88,6 +88,7 @@ static void *grab_file(const char *filename, unsigned long *size)
static enum return_type ensure_additional_modules_available(void)
{
+#ifdef ENABLE_ADDITIONAL_MODULES
struct stat statbuf;
if (stat(additional_archive_name, &statbuf)) {
char floppy_mount_location[] = "/tmp/floppy";
@@ -139,6 +140,10 @@ static enum return_type ensure_additional_modules_available(void)
return ret;
} else
return RETURN_OK;
+#else
+ allow_additional_modules_floppy = 0;
+ return RETURN_ERROR;
+#endif
}
int insmod_local_file(char * path, char * options)