Skip to contentSkip to conversation

Rip out old recursive module loading, replace with something simpler

PATCH In review initramfs mailing list 1 participant 1 message Feb 16, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 23/50 Rip out old recursive module loading, replace with something simpler

Gitweb:     http://git.kernel.org/?p=linux/kernel/git/davej/dracut.git;a=commit;h=6fa0c3d60b73661645399e370fc035e81bd4ff63
Commit:     6fa0c3d60b73661645399e370fc035e81bd4ff63
Parent:     170b260bd9812de5307f394d030079549d95fc4d
Author:     Victor Lowther <[email protected]>
AuthorDate: Fri Feb 13 04:42:25 2009 -0800
Committer:  Dave Jones <[email protected]>
CommitDate: Mon Feb 16 13:56:41 2009 -0500

[PATCH 23/50] Rip out old recursive module loading, replace with something simpler

bash allows unlimited recursion and several other tricks to make finding all the dependencies of a kernel module much simpler.

This nukes about 130 lines, most of it in dracut-functions.

This diff also touches some cleanups made in the inst function.

---
 dracut           |    6 +--
 dracut-functions |  205 +++++++++++++-----------------------------------------
 2 files changed, 50 insertions(+), 161 deletions(-)
dracut +1 -5
index 84abdb5..018b5aa 100755
@@ -113,11 +113,7 @@ for d in etc proc sys sysroot dev/pts; do mkdir -p "$initdir/$d"; done
 # FIXME: hard-coded module list of doom.
 [[ $modules ]] || modules="=ata =block =drm dm-crypt aes sha256 cbc"
 
-mkdir -p "$initdir/lib/modules/$kernel"
-# expand out module deps, etc
-for mod in $(resolveAndExpandModules $modules) ; do
-    installmodule $mod "$initdir"
-done
+instmod $modules
 
 /sbin/depmod -a -b "$initdir" $kernel || {
     error "\"/sbin/depmod -a $kernel\" failed."
dracut-functions +49 -156

262 lines not on this page · raw message

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html