Comment # 57 on bug 1036463 from
Although I said otherwise in comment 53, I feel now that a SUSE-specific kernel
patch is sub-optimal for this purpose. To be honest, that's the real reason why
the patch hasn't been submitted yet.

Here's yet another idea. 

> cat >/etc/udev/rules.d/81-sg.rules <<EOF
> ACTION=="add", ENV{MODALIAS}=="scsi:t-*", RUN{builtin}+="kmod load sg"
> EOF

Advantages: 

 1 This loads sg only if SCSI devices are present.
 2 it's executed after 80-drivers.rules, so the specific drivers sd_mod / st /
ses ... will be loaded before sg, regardless if they're built-in or modules.
 3 no kernel modification needed.
 4 I'm guessing that Franck wouldn't want to take it in the udev package, but
we can ship it in sg3_utils.

Opinions?


You are receiving this mail because: