summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-27 12:16:46 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-27 12:16:46 +0000
commit2aa7d1d52ec83045408ee51d77c9517916cda9a5 (patch)
tree389b6744015bc0af838c1fd440f4fdc1eb8e63f8 /mdk-stage1
parent3507fefc0bee2f3c1bd97fb8dd22efa12911f594 (diff)
downloaddrakx-backup-do-not-use-2aa7d1d52ec83045408ee51d77c9517916cda9a5.tar
drakx-backup-do-not-use-2aa7d1d52ec83045408ee51d77c9517916cda9a5.tar.gz
drakx-backup-do-not-use-2aa7d1d52ec83045408ee51d77c9517916cda9a5.tar.bz2
drakx-backup-do-not-use-2aa7d1d52ec83045408ee51d77c9517916cda9a5.tar.xz
drakx-backup-do-not-use-2aa7d1d52ec83045408ee51d77c9517916cda9a5.zip
allow debug mode to go further when loading modules
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/modules.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 428b12460..882e617fe 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -64,6 +64,9 @@ int insmod_local_file(char * path, char * options)
unsigned long len;
int rc;
+ if (IS_TESTING)
+ return 0;
+
file = grab_file(path, &len);
if (!file) {
@@ -91,9 +94,6 @@ static int load_modules_dependencies(void)
log_message("loading modules dependencies");
- if (IS_TESTING)
- return 0;
-
fd = open(deps_file, O_RDONLY);
if (fd == -1) {
log_perror(deps_file);
@@ -284,9 +284,6 @@ enum insmod_return my_insmod(const char * mod_name, enum driver_type type __attr
net_devices = get_net_devices();
#endif
- if (IS_TESTING)
- return INSMOD_OK;
-
#ifdef ENABLE_NETWORK_STANDALONE
{
char *cmd = options ? asprintf_("/sbin/modprobe %s %s", mod_name, options) :