/[packages]/cauldron/systemd/current/SOURCES/0502-Disable-modprobe-pci-devices-on-coldplug-for-storage.patch
ViewVC logotype

Contents of /cauldron/systemd/current/SOURCES/0502-Disable-modprobe-pci-devices-on-coldplug-for-storage.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1735146 - (show annotations) (download)
Wed Jul 7 23:04:13 2021 UTC (2 years, 9 months ago) by tmb
File size: 1478 byte(s)
update to v249
1 From 51cda725533a217fd194c26a90e9c8c72a7e8c4d Mon Sep 17 00:00:00 2001
2 From: Frederic Crozat <fcrozat@mandriva.com>
3 Date: Sun, 1 Jul 2012 17:44:41 +0100
4 Subject: [PATCH 502/509] Disable modprobe pci devices on coldplug for storage
5 and display
6
7 Signed-off-by: Frederic Crozat <fcrozat@mandriva.com>
8 ---
9 rules.d/80-drivers.rules | 10 ++++++++++
10 1 file changed, 10 insertions(+)
11
12 diff --git a/rules.d/80-drivers.rules b/rules.d/80-drivers.rules
13 index 16fa5d8e3..f99b99425 100644
14 --- a/rules.d/80-drivers.rules
15 +++ b/rules.d/80-drivers.rules
16 @@ -2,6 +2,16 @@
17
18 ACTION!="add", GOTO="drivers_end"
19
20 +# modprobe pci devices on cold plug except for:
21 +# PCI_BASE_CLASS_STORAGE 0x01
22 +SUBSYSTEM=="pci", ENV{STARTUP}=="1", ATTR{class}=="0x01*", GOTO="drivers_end"
23 +
24 +# for display (0x03) devices
25 +# - use a special conflict-filtering script when not in initrd
26 +SUBSYSTEM=="pci", ATTR{class}=="0x03*", DRIVER!="?*", TEST=="/initrd", RUN+="/sbin/display_driver_helper --load $env{MODALIAS}", GOTO="drivers_end"
27 +# - skip loading if in initrd (i.e. no /initrd) and nokmsboot or failsafe is specified
28 +SUBSYSTEM=="pci", ATTR{class}=="0x03*", DRIVER!="?*", PROGRAM="/bin/grep -qFw -e nokmsboot -e failsafe /proc/cmdline", GOTO="drivers_end"
29 +
30 ENV{MODALIAS}=="?*", RUN{builtin}+="kmod load '$env{MODALIAS}'"
31 SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN{builtin}+="kmod load tifm_sd"
32 SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN{builtin}+="kmod load tifm_ms"
33 --
34 2.13.5

  ViewVC Help
Powered by ViewVC 1.1.30