]> err.no Git - systemd/commitdiff
rules: ATA_COMPAT do not try to match on sr*, it will never have vendor ATA
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 2 Dec 2008 16:33:11 +0000 (17:33 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 2 Dec 2008 16:33:11 +0000 (17:33 +0100)
rules/rules.d/60-persistent-storage.rules

index d433a0ff26527f7aa6fbacdfdeb4b710bb9bb3f7..abb9fce30bad5d5645476f3c66804444e0c9fc9e 100644 (file)
@@ -38,7 +38,7 @@ KERNEL=="sd*[!0-9]|sr*", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394
 KERNEL=="sd*[0-9]", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394-$attr{ieee1394_id}-part%n"
 
 # libata compat (ata-* links, like old hd* devices did create)
-KERNEL=="sd*[!0-9]|sr*", ENV{ID_VENDOR}=="ATA", PROGRAM="ata_id $tempnode", RESULT=="?*", ENV{ID_ATA_COMPAT}="$result", SYMLINK+="disk/by-id/ata-$env{ID_ATA_COMPAT}"
+KERNEL=="sd*[!0-9]", ENV{ID_VENDOR}=="ATA", PROGRAM="ata_id $tempnode", RESULT=="?*", ENV{ID_ATA_COMPAT}="$result", SYMLINK+="disk/by-id/ata-$env{ID_ATA_COMPAT}"
 KERNEL=="sd*[0-9]", ENV{ID_ATA_COMPAT}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_ATA_COMPAT}-part%n"
 
 KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ATTRS{name}=="?*", ATTRS{serial}=="?*", ENV{ID_NAME}="$attr{name}", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}"