chiark / gitweb /
update SUSE rules
authorKay Sievers <kay.sievers@suse.de>
Thu, 22 Dec 2005 23:13:34 +0000 (00:13 +0100)
committerKay Sievers <kay.sievers@suse.de>
Thu, 22 Dec 2005 23:13:34 +0000 (00:13 +0100)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
etc/udev/persistent-disk.rules [moved from etc/udev/persistent.rules with 94% similarity]
etc/udev/suse/05-udev-early.rules
etc/udev/suse/50-udev-default.rules
etc/udev/suse/80-sysconfig.rules

similarity index 94%
rename from etc/udev/persistent.rules
rename to etc/udev/persistent-disk.rules
index 0b231aacd579f3b5cc4789aea667af3c1429c61d..3515bb189d626895fe975a25779d0d2d2ea12144 100644 (file)
@@ -43,5 +43,6 @@ KERNEL=="*[!0-9]", IMPORT{program}="/sbin/edd_id --export $tempnode"
 KERNEL=="*[!0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}"
 KERNEL=="*[0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n"
 
-LABEL="persistent_end"
+KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M -m %m", SYMLINK="disk/by-name/%c"
 
+LABEL="persistent_end"
index ce159d56d30f3e469977bd6fc69e13117eef1403..dfdbdff0c9f4ed93314cc8ce3d9762530870d8ff 100644 (file)
@@ -1,5 +1,6 @@
 # sysfs is populated after the event is sent
 ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
+ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
 
 # ignore these events until someone needs them
 SUBSYSTEM=="drivers",          OPTIONS="ignore_device"
index 09f197da23c861135af995077fe268042330e8be..fe861ae97294ed140555e36810c3f5028e3b9fb4 100644 (file)
@@ -33,7 +33,7 @@ KERNEL=="vbi0",                       SYMLINK+="vbi"
 KERNEL=="pmu",                 GROUP="video"
 
 # dvb
-SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%i $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
+SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
 
 # input devices
 KERNEL=="mice",                        NAME="input/%k", MODE="0640"
@@ -127,9 +127,6 @@ SUBSYSTEM=="ide", ACTION=="add", RUN+="ide.sh"
 # device mapper
 KERNEL=="device-mapper", NAME="%k", SYMLINK+="mapper/control"
 
-# check fstab and possibly mount
-SUBSYSTEM=="block", ACTION=="add", KERNEL=="sd*[0-9]|hd*[0-9]", RUN+="mount.sh"
-
 # misc storage devices (non-block)
 KERNEL=="sg*",                 NAME="%k", GROUP="disk", MODE="640"
 KERNEL=="st*",                 NAME="%k", GROUP="disk"
index 7073813c61a9dbb542471357c280062a1e2878ac..d6778647baafd20c9dca2fa7c78496f949500c63 100644 (file)
@@ -9,7 +9,7 @@ SUBSYSTEM=="pci", ACTION=="add", RUN+="/sbin/hwup bus-pci-%k -o hotplug"
 SUBSYSTEM=="usb", ACTION=="add", RUN+="/sbin/hwup usb-devpath-%p -o hotplug"
 SUBSYSTEM=="ieee1394", ACTION=="add", RUN+="/sbin/hwup ieee1394-devpath-%p -o hotplug"
 SUBSYSTEM=="scsi", DEVPATH=="/devices/css*", ACTION=="remove", RUN+="/sbin/hwdown scsi-devpath-%p -o hotplug"
-SUBSYSTEM=="scsi_host", ACTION=="add", SYSFS{device/cutype}=="?*", RUN+="/sbin/hwup scsi__host-devpath-%p -o hotplug"
+SUBSYSTEM=="scsi_host", ACTION=="add", SYSFS{proc_name}=="zfcp", RUN+="/sbin/hwup scsi_host-devpath-%p -o hotplug"
 SUBSYSTEM=="vio", ACTION=="add", RUN+="/sbin/hwup bus-macio-%k -o hotplug"
 SUBSYSTEM=="macio", ACTION=="add", RUN+="/sbin/hwup bus-macio-%k -o hotplug"
 SUBSYSTEM=="ccw", ACTION=="add", RUN+="/sbin/hwup ccw-devpath-%p -o hotplug"