chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9138bcb
)
persistent device naming: also run on "change" event
author
Kay Sievers
<kay.sievers@vrfy.org>
Fri, 14 Mar 2008 22:18:19 +0000
(23:18 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Fri, 14 Mar 2008 22:18:19 +0000
(23:18 +0100)
etc/udev/rules.d/60-persistent-input.rules
patch
|
blob
|
history
etc/udev/rules.d/60-persistent-storage-tape.rules
patch
|
blob
|
history
etc/udev/rules.d/60-persistent-storage.rules
patch
|
blob
|
history
diff --git
a/etc/udev/rules.d/60-persistent-input.rules
b/etc/udev/rules.d/60-persistent-input.rules
index fbebe86244c80625b096962cdd6406c14571b088..34d5ef1557640a7fc1021a5fc49e87fe1516272c 100644
(file)
--- a/
etc/udev/rules.d/60-persistent-input.rules
+++ b/
etc/udev/rules.d/60-persistent-input.rules
@@
-1,6
+1,6
@@
# do not edit this file, it will be overwritten on update
# do not edit this file, it will be overwritten on update
-ACTION!="add", GOTO="persistent_input_end"
+ACTION!="add
|change
", GOTO="persistent_input_end"
SUBSYSTEM!="input", GOTO="persistent_input_end"
KERNEL=="input[0-9]*", GOTO="persistent_input_end"
SUBSYSTEM!="input", GOTO="persistent_input_end"
KERNEL=="input[0-9]*", GOTO="persistent_input_end"
diff --git
a/etc/udev/rules.d/60-persistent-storage-tape.rules
b/etc/udev/rules.d/60-persistent-storage-tape.rules
index d2dbc71c60ab2b068d2336a929bd81cf3a5c86d3..9c68fdf1a13784146c260be3f0d6ad95cb53c408 100644
(file)
--- a/
etc/udev/rules.d/60-persistent-storage-tape.rules
+++ b/
etc/udev/rules.d/60-persistent-storage-tape.rules
@@
-2,7
+2,7
@@
# persistent storage links: /dev/tape/{by-id,by-path}
# persistent storage links: /dev/tape/{by-id,by-path}
-ACTION!="add", GOTO="persistent_storage_tape_end"
+ACTION!="add
|change
", GOTO="persistent_storage_tape_end"
KERNEL=="nst[0-9]", SUBSYSTEMS=="scsi", IMPORT{program}="scsi_id --export --whitelisted --fallback-to-sysfs -s %p -d $tempnode", SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}-nst"
KERNEL=="nst[0-9]", SUBSYSTEMS=="scsi", IMPORT{program}="scsi_id --export --whitelisted --fallback-to-sysfs -s %p -d $tempnode", SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}-nst"
diff --git
a/etc/udev/rules.d/60-persistent-storage.rules
b/etc/udev/rules.d/60-persistent-storage.rules
index 68fe59fd955b4711651fdf460435d798fcfd5e49..990703cef3ed52a7ddc8f76e41206d291c413ef8 100644
(file)
--- a/
etc/udev/rules.d/60-persistent-storage.rules
+++ b/
etc/udev/rules.d/60-persistent-storage.rules
@@
-3,7
+3,7
@@
# persistent storage links: /dev/disk/{by-id,by-uuid,by-label,by-path}
# scheme based on "Linux persistent device names", 2004, Hannes Reinecke <hare@suse.de>
# persistent storage links: /dev/disk/{by-id,by-uuid,by-label,by-path}
# scheme based on "Linux persistent device names", 2004, Hannes Reinecke <hare@suse.de>
-ACTION!="add", GOTO="persistent_storage_end"
+ACTION!="add
|change
", GOTO="persistent_storage_end"
SUBSYSTEM!="block", GOTO="persistent_storage_end"
# skip rules for inappropriate block devices
SUBSYSTEM!="block", GOTO="persistent_storage_end"
# skip rules for inappropriate block devices