]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Add some modules
authorJeremy Katz <katzj@redhat.com>
Tue, 16 Dec 2008 19:19:52 +0000 (14:19 -0500)
committerJeremy Katz <katzj@redhat.com>
Tue, 16 Dec 2008 19:19:52 +0000 (14:19 -0500)
dm-crypt support requires that we have some modules, so add some basic
support for copying over a module tree for testing

generate.sh

index 3f2e56c0e600161c45ed5d1e739a65dcf80a5387..a70962d1cd6c242bac89d41d7d4e918f59acbb5e 100755 (executable)
@@ -43,8 +43,16 @@ cp -v switch_root $tmpdir/sbin/switch_root
 # FIXME: and some directory structure
 mkdir -p $tmpdir/etc $tmpdir/proc $tmpdir/sys $tmpdir/sysroot
 
-# FIXME: we don't install modules right now, but for the testing we're doing
-# everything is already built-in
+# FIXME: module installation should be based on a couple of things
+# a) the modules for the kernel we're building an initrd for
+# b) config list
+# c) installed packages
+# but for now... everything wins!
+if [ -d modules ]; then
+   mkdir -p $tmpdir/lib/modules
+   cp -r modules/* $tmpdir/lib/modules
+   rm -rf $tmpdir/lib/modules/*/kernel/drivers/video
+fi
 
 # plymouth
 if [ -x /usr/libexec/plymouth/plymouth-populate-initrd ]; then