Only check for ATA SMART if the device reports non-removable media
authorDavid Zeuthen <davidz@redhat.com>
Tue, 19 May 2009 21:43:25 +0000 (17:43 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 19 May 2009 21:43:25 +0000 (17:43 -0400)
src/95-devkit-disks.rules

index fb8b745..03647f3 100644 (file)
@@ -60,8 +60,8 @@ ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --e
 # ata_id and usb_id
 #
 
-KERNEL=="sd*[!0-9]", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode"
-KERNEL=="sd*[!0-9]", ENV{ID_BUS}=="scsi", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="ATA", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode"
+KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode"
+KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="scsi", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="ATA", IMPORT{program}="devkit-disks-probe-ata-smart $tempnode"
 
 ##############################################################################################################