chiark / gitweb /
don't create uuid/label links for raid members
authorKay Sievers <kay.sievers@suse.de>
Wed, 22 Mar 2006 18:46:33 +0000 (19:46 +0100)
committerKay Sievers <kay.sievers@suse.de>
Wed, 22 Mar 2006 18:46:33 +0000 (19:46 +0100)
etc/udev/60-persistent-storage.rules

index 5f1e84b..2455866 100644 (file)
@@ -38,8 +38,8 @@ KERNEL=="*[!0-9]", SYSFS{removable}=="1", GOTO="persistent_storage_end"
 
 # by-label/by-uuid (filesystem properties)
 IMPORT{program}="/sbin/vol_id --export $tempnode"
-ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
-ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
+ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
+ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
 
 # BIOS Enhanced Disk Device
 KERNEL=="*[!0-9]", IMPORT{program}="/sbin/edd_id --export $tempnode"