]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
98dracut-systemd: Fix module force loading with systemd 238/head
authorDaniel Molkentin <dmolkentin@suse.com>
Fri, 16 Jun 2017 14:32:56 +0000 (16:32 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Fri, 16 Jun 2017 14:58:12 +0000 (16:58 +0200)
This used to work only when specified via the command line
or if systemd was not being used. However, the exisistence of
20_force_driver.conf also requires dracut-pre-udev.service
to be run.

Reference: bsc#986216

modules.d/98dracut-systemd/dracut-pre-udev.service

index 7fdeb6efc18aea419a996c9300c83275af0322df..1f71546b903497b9f40b0585d4723f64e8b43ff1 100644 (file)
@@ -15,6 +15,7 @@ Before=systemd-udevd.service dracut-pre-trigger.service
 After=dracut-cmdline.service
 Wants=dracut-cmdline.service
 ConditionPathExists=/usr/lib/initrd-release
+ConditionPathExists=|/etc/cmdline.d/20-force_drivers.conf
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-udev
 ConditionKernelCommandLine=|rd.break=pre-udev
 ConditionKernelCommandLine=|rd.driver.blacklist