]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
add 90kernel-modules-loaded to install currently loaded kernel modules
authorHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 15:31:43 +0000 (16:31 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 15:31:43 +0000 (16:31 +0100)
modules.d/90kernel-modules-loaded/install [new file with mode: 0755]

diff --git a/modules.d/90kernel-modules-loaded/install b/modules.d/90kernel-modules-loaded/install
new file mode 100755 (executable)
index 0000000..ac2ce40
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# install all currently loaded modules in initrd
+
+/sbin/lsmod | while read mod rest; do
+       instmods "$mod"
+done
+
+[ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
+dracut_install /etc/modprobe.d/*
+