]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Correctly set cio_ignore for dynamic s390 rules
authorHannes Reinecke <hare@suse.de>
Wed, 18 Jun 2014 13:17:21 +0000 (15:17 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Fri, 23 Jun 2017 19:26:33 +0000 (21:26 +0200)
When converting 'rd.zfcp' and 'rd.dasd' into udev rules we
need to make sure the enable those device ids via cio_ignore,
otherwise the rules might never be called.

Signed-off-by: Hannes Reinecke <hare@suse.de>
modules.d/95zfcp_rules/parse-zfcp.sh

index 2d90cb6161e68a993954d746e73bd1952c5a9b74..2b209c47b6b0532ac165cdde7374e6fe8eefa3e4 100755 (executable)
@@ -37,6 +37,9 @@ EOF
 ACTION=="add", KERNEL=="rport-*", ATTR{port_name}=="$wwpn", SUBSYSTEMS=="ccw", KERNELS=="$ccw", ATTR{[ccw/$ccw]$wwpn/unit_add}="$lun"
 EOF
     fi
+    if [ -x /sbin/cio_ignore ] && ! cio_ignore -i $ccw > /dev/null ; then
+        cio_ignore -r $ccw
+    fi
 }
 
 if [[ -f /sys/firmware/ipl/ipl_type &&