Commit ecebff53 authored by Martin Pitt's avatar Martin Pitt
Browse files

Change the sg loading rule back to using modprobe

kmod is too fast and then sg races with sd, causing the latter to not see SCSI disks.

Closes: #752591, #752605
parent aca7206b
systemd (204-12) UNRELEASED; urgency=medium
* Change the sg loading rule (for Debian #657948) back to using modprobe.
kmod is too fast and then sg races with sd, causing the latter to not see
SCSI disks. (Closes: #752591, #752605)
-- Martin Pitt <mpitt@debian.org> Wed, 25 Jun 2014 10:22:33 +0200
systemd (204-11) unstable; urgency=medium
[ Martin Pitt ]
......
......@@ -5,6 +5,9 @@ Subject: Load sg module from 80-drivers.rules
Taken from the Debian specific rules, this is the remaining difference over the
upstream 80-drivers.rules.
Note: DON'T use the kmod builtin here! It's too fast and then races with sd,
causing the latter to not see SCSI disks. (https://bugs.debian.org/752591)
Bug-Debian: http://bugs.debian.org/657948
---
rules/80-drivers.rules | 1 +
......@@ -18,6 +21,6 @@ index 50523e4..9222fb9 100644
SUBSYSTEM=="i2o", RUN{builtin}="kmod load i2o_block"
SUBSYSTEM=="module", KERNEL=="parport_pc", RUN{builtin}="kmod load ppdev"
KERNEL=="mtd*ro", ENV{MTD_FTL}=="smartmedia", RUN{builtin}="kmod load sm_ftl"
+SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN{builtin}="kmod load sg"
+SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -b sg"
LABEL="drivers_end"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment