summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/modules.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-11 22:13:58 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-11 22:13:58 +0000
commit3f2fff95386862944f1e9cd1e29a7b3709802539 (patch)
tree45f12f74ce9c9ff44b747fda3ef013798da52688 /mdk-stage1/modules.c
parentde59f070372d5a5e782a5e703a6e2003d47f7bd2 (diff)
downloaddrakx-backup-do-not-use-3f2fff95386862944f1e9cd1e29a7b3709802539.tar
drakx-backup-do-not-use-3f2fff95386862944f1e9cd1e29a7b3709802539.tar.gz
drakx-backup-do-not-use-3f2fff95386862944f1e9cd1e29a7b3709802539.tar.bz2
drakx-backup-do-not-use-3f2fff95386862944f1e9cd1e29a7b3709802539.tar.xz
drakx-backup-do-not-use-3f2fff95386862944f1e9cd1e29a7b3709802539.zip
continue anyway when insmod'ing of modules fail (for blank.img)
Diffstat (limited to 'mdk-stage1/modules.c')
-rw-r--r--mdk-stage1/modules.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 5e3d26ee9..ddb5c6a4c 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -264,7 +264,9 @@ int my_insmod(const char * mod_name, enum driver_type type, char * options)
}
}
#endif
- }
+ } else
+ log_message("warning, insmod failed (%s %s)", mod_name, options);
+
return i;
}
@@ -283,8 +285,8 @@ static enum return_type insmod_with_options(char * mod, enum driver_type type)
strcat(options, mod);
strcat(options, " ");
strcat(options, answers[0]); // because my_insmod will eventually modify the string
-
- if (my_insmod(mod, type, answers[0])) {
+
+ if (my_insmod(mod, type, answers[0])) {
error_message("Insmod failed.");
return RETURN_ERROR;
}