]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
kernel: add rdloaddriver kernel command line parameter
authorHarald Hoyer <harald@redhat.com>
Wed, 13 Jan 2010 14:34:18 +0000 (15:34 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 13 Jan 2010 14:34:18 +0000 (15:34 +0100)
rdloaddriver=<drivername>
force loading kernel module <drivername>

dracut.8
modules.d/90kernel-modules/install
modules.d/90kernel-modules/parse-kernel.sh [new file with mode: 0755]

index f25a77c4b7f008a2d18305380cf43bcc6f693713..c75e0dde9da5213878466553e40bdd9460a1e90c 100644 (file)
--- a/dracut.8
+++ b/dracut.8
@@ -328,6 +328,9 @@ do not start plymouth. This will not work with encrypted partitions.
 .TP
 .B rdblacklist=<drivername>
 do not load kernel module <drivername>
+.TP
+.B rdloaddriver=<drivername>
+force loading kernel module <drivername>
 
 .SH Debug
 .TP
index b3fb0df118ef86543894bbbeb01dbd598729a5b1..2f19d0c2e685d873d5d875b4f51daa09cff097a0 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/bash
 [ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
 dracut_install $(find /etc/modprobe.d/ -type f -name '*.conf')
+inst_hook cmdline 01 "$moddir/parse-kernel.sh"
diff --git a/modules.d/90kernel-modules/parse-kernel.sh b/modules.d/90kernel-modules/parse-kernel.sh
new file mode 100755 (executable)
index 0000000..59d7870
--- /dev/null
@@ -0,0 +1,3 @@
+for p in $(getargs rdloaddriver=); do 
+       modprobe $p
+done