diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-04 12:16:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-04 12:16:19 +0000 |
commit | 35b60523ce6b2e32f33dee7a09ce505cc5512be6 (patch) | |
tree | a619197b382700f959fb25bf6407f3a58804f5f9 /mdk-stage1/modules.c | |
parent | f937ddc901c78571016f054ebc456e9716fbde73 (diff) | |
download | drakx-35b60523ce6b2e32f33dee7a09ce505cc5512be6.tar drakx-35b60523ce6b2e32f33dee7a09ce505cc5512be6.tar.gz drakx-35b60523ce6b2e32f33dee7a09ce505cc5512be6.tar.bz2 drakx-35b60523ce6b2e32f33dee7a09ce505cc5512be6.tar.xz drakx-35b60523ce6b2e32f33dee7a09ce505cc5512be6.zip |
LIVE_LOCATION is better named LIVE_LOCATION_REL without the leading "/"
Diffstat (limited to 'mdk-stage1/modules.c')
-rw-r--r-- | mdk-stage1/modules.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index a0876416e..654873146 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -373,7 +373,13 @@ static enum insmod_return insmod_with_deps(const char * mod_name, char * options return INSMOD_OK; log_message("needs %s", mod_name); - return insmod_archived_file(mod_name, options, allow_modules_floppy); + { + char *file = asprintf_("/modules/%s%s", mod_name, kernel_module_extension()); + if (access(file, R_OK) == 0) + return insmod_local_file(file, options); + else + return insmod_archived_file(mod_name, options, allow_modules_floppy); + } } |