diff options
author | Greg KH <gregkh@suse.de> | 2005-08-04 16:33:53 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-08-04 16:33:53 -0700 |
commit | 52dbd80e783adaa0a66d4cf981f5b34d2af66f60 (patch) | |
tree | 05d41fda32a3419db03aafa03a7efbdb538f5088 /etc/udev/gentoo | |
parent | 47e353f9b9c1a95d4e7cdf0e9be3d746585851f1 (diff) |
updated gentoo rule file to handle removable ide devices.
Thanks to Kay for the quick fix.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'etc/udev/gentoo')
-rw-r--r-- | etc/udev/gentoo/udev.rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/udev/gentoo/udev.rules b/etc/udev/gentoo/udev.rules index 0c96969dbc..d208f5068d 100644 --- a/etc/udev/gentoo/udev.rules +++ b/etc/udev/gentoo/udev.rules @@ -245,6 +245,12 @@ KERNEL=="tpm*", NAME="%k", OWNER="tss", GROUP="tss", MODE="0600" # block device disk id's SUBSYSTEM=="block", GROUP="disk", MODE="0640" + +# skip accessing removable ide devices, cause the ide drivers are horrible broken +SUBSYSTEM=="block", BUS=="ide", SYSFS{removable}="1", GOTO="no_volume_id" +SUBSYSTEM=="block", BUS=="ide", SYSFS{../removable}="1", GOTO="no_volume_id" + +# persistent disk device links /dev/disk/ KERNEL=="hd*[!0-9]", ACTION=="add", IMPORT="/etc/udev/scripts/ata_id --export $tempnode" KERNEL=="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="$env{ID_TYPE}/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}" KERNEL=="hd*[0-9]", ACTION=="add", IMPORT{parent}=="ID_*", SYMLINK+="$env{ID_TYPE}/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n" |