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 0b231aa..3515bb1 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 ce159d5..dfdbdff 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 09f197d..fe861ae 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 7073813..d677864 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"