2012-03-01 15:09:53 +00:00
|
|
|
diff --git a/data/80-udisks.rules b/data/80-udisks.rules
|
2011-08-18 12:53:07 +00:00
|
|
|
index 6720394..60b67ed 100644
|
2012-03-01 15:09:53 +00:00
|
|
|
--- a/data/80-udisks.rules
|
|
|
|
+++ b/data/80-udisks.rules
|
2011-08-18 12:53:07 +00:00
|
|
|
@@ -23,7 +23,7 @@ LABEL="ata_port_cardbus_end"
|
|
|
|
# this is the case we can trigger a 'change' on the sas_expander device
|
|
|
|
# when the bsg device appears)
|
|
|
|
#
|
|
|
|
-SUBSYSTEM=="sas_expander", ACTION=="add|change", IMPORT{program}="udisks-probe-sas-expander /sys/%p"
|
|
|
|
+SUBSYSTEM=="sas_expander", ACTION=="add|change", IMPORT{program}="@slashlibdir@/udev/udisks-probe-sas-expander /sys/%p"
|
|
|
|
|
|
|
|
##############################################################################################################
|
|
|
|
|
|
|
|
@@ -54,7 +54,7 @@ ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}=="1", GOTO="udisks_end"
|
|
|
|
# import UDISKS_DM_* and UDISKS_LVM2_* properties - the long-term plan is to make the lvm2 and
|
|
|
|
# device-mapper packages provide this information
|
|
|
|
#
|
|
|
|
-KERNEL=="dm-*", IMPORT{program}="udisks-dm-export %M %m"
|
|
|
|
+KERNEL=="dm-*", IMPORT{program}="@slashlibdir@/udev/udisks-dm-export %M %m"
|
|
|
|
|
|
|
|
# Make udevd synthesize a 'change' uevent when last opener of a rw-fd closes the fd - this
|
|
|
|
# should be part of the device-mapper rules
|
|
|
|
@@ -63,7 +63,7 @@ KERNEL=="dm-*", OPTIONS+="watch"
|
|
|
|
##############################################################################################################
|
|
|
|
# Probe LVM2 Physical Volumes - this will eventually be part of the LVM2 package
|
|
|
|
|
|
|
|
-ENV{ID_FS_TYPE}=="LVM2_member", TEST=="/lib/udev/udisks-lvm-pv-export", IMPORT{program}="udisks-lvm-pv-export $env{ID_FS_UUID}"
|
|
|
|
+ENV{ID_FS_TYPE}=="LVM2_member", TEST=="@slashlibdir@/udev/udisks-lvm-pv-export", IMPORT{program}="@slashlibdir@/udev/udisks-lvm-pv-export $env{ID_FS_UUID}"
|
|
|
|
|
|
|
|
##############################################################################################################
|
|
|
|
|
|
|
|
@@ -85,7 +85,7 @@ KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_COUNT_DATA}=="", GOTO="probe_parttable_e
|
|
|
|
|
|
|
|
# scan for partition tables both on whole-disk and partitions
|
|
|
|
#
|
|
|
|
-IMPORT{program}="udisks-part-id $tempnode"
|
|
|
|
+IMPORT{program}="@slashlibdir@/udev/udisks-part-id $tempnode"
|
|
|
|
|
|
|
|
LABEL="probe_parttable_end"
|
|
|
|
|
|
|
|
@@ -109,13 +109,13 @@ LABEL="md_end"
|
|
|
|
#
|
|
|
|
|
|
|
|
# USB ATA enclosures with a SAT layer
|
|
|
|
-KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="udisks-probe-ata-smart $tempnode"
|
|
|
|
+KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="@slashlibdir@/udev/udisks-probe-ata-smart $tempnode"
|
|
|
|
|
|
|
|
# ATA disks driven by libata
|
|
|
|
-KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="ata", ENV{DEVTYPE}=="disk", IMPORT{program}="udisks-probe-ata-smart $tempnode"
|
|
|
|
+KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="ata", ENV{DEVTYPE}=="disk", IMPORT{program}="@slashlibdir@/udev/udisks-probe-ata-smart $tempnode"
|
|
|
|
|
|
|
|
# ATA disks connected via SAS (not driven by libata)
|
|
|
|
-KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="scsi", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="ATA", IMPORT{program}="udisks-probe-ata-smart $tempnode"
|
|
|
|
+KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="scsi", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="ATA", IMPORT{program}="@slashlibdir@/udev/udisks-probe-ata-smart $tempnode"
|
|
|
|
|
|
|
|
|
|
|
|
# Example rule for tagging a device with a specific media type. Where and
|