]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
kernel-modules: handle rd.driver.* in systemd mode in dracut-pre-udev
authorHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 15:43:49 +0000 (16:43 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:29:11 +0000 (17:29 +0100)
modules.d/90kernel-modules/module-setup.sh

index f75bb61d87d7f80b922a3c148f6e360ba88670db..20e9f875d137e5c33623134c3ad7d213a904e578 100755 (executable)
@@ -72,6 +72,8 @@ installkernel() {
 install() {
     dracut_install -o /lib/modprobe.d/*.conf
     [[ $hostonly ]] && dracut_install -o /etc/modprobe.d/*.conf /etc/modprobe.conf
-    inst_hook cmdline 01 "$moddir/parse-kernel.sh"
+    if ! dracut_module_included "systemd"; then
+        inst_hook cmdline 01 "$moddir/parse-kernel.sh"
+    fi
     inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
 }