From: Hannes Reinecke Date: Wed, 18 Jun 2014 13:17:21 +0000 (+0200) Subject: Correctly set cio_ignore for dynamic s390 rules X-Git-Tag: 046~51^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d1ea2d72616ec7ed9cf5e1f3bc99d7d5bc4f003;p=thirdparty%2Fdracut.git Correctly set cio_ignore for dynamic s390 rules 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 --- diff --git a/modules.d/95zfcp_rules/parse-zfcp.sh b/modules.d/95zfcp_rules/parse-zfcp.sh index 2d90cb616..2b209c47b 100755 --- a/modules.d/95zfcp_rules/parse-zfcp.sh +++ b/modules.d/95zfcp_rules/parse-zfcp.sh @@ -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 &&