chiark / gitweb /
rules: ignore partitons that span the entire disk
authorFabio Massimo Di Nitto <fabbione@ubuntu.com>
Wed, 16 May 2007 18:15:21 +0000 (20:15 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 16 May 2007 18:15:21 +0000 (20:15 +0200)
etc/udev/rules.d/60-persistent-storage.rules

index 2af837d..a140259 100644 (file)
@@ -21,6 +21,9 @@ KERNEL=="ram*|loop*|fd*|nbd*|gnbd*|dm-*|md*", GOTO="persistent_storage_end"
 KERNEL=="hd*[!0-9]", ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end"
 KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end"
 
 KERNEL=="hd*[!0-9]", ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end"
 KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end"
 
+# ignore partitions that span the entire disk
+ATTR{whole_disk}=="", GOTO="persistent_storage_end"
+
 # for partitions import parent information
 KERNEL=="*[0-9]", IMPORT{parent}="ID_*"
 
 # for partitions import parent information
 KERNEL=="*[0-9]", IMPORT{parent}="ID_*"