Skip to content

Commit

Permalink
55-scsi-sg3_id.rules: support for legacy CCISS devices
Browse files Browse the repository at this point in the history
In order to replace scsi_id functionality from udev's
60-persistent-storage.rules, add code for non-SCSI devices that support sg
INQUIRY (only CCISS at this time). CCISS has been deprecated since Linux 4.14,
but these rules are supposed to work with older kernels, too.
  • Loading branch information
mwilck committed Jan 25, 2018
1 parent 06e52d4 commit 7cd64b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/55-scsi-sg3_id.rules
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ SUBSYSTEM!="block", GOTO="sg3_utils_id_end"
ENV{DEVTYPE}=="partition", IMPORT{parent}="ID_SCSI", IMPORT{parent}="SCSI_*"
ENV{DEVTYPE}=="partition", ENV{ID_SCSI}=="1", GOTO="compat"

# Handle non-SCSI devices that implement SCSI inquiry
KERNEL=="cciss*", ENV{DEVTYPE}=="disk", GOTO="sg_inquiry"

# Ignore everything else except sd/sr
KERNEL!="sd*[!0-9]|sr*", GOTO="sg3_utils_id_end"

Expand Down

0 comments on commit 7cd64b5

Please sign in to comment.