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 <hare@suse.de>
master
Hannes Reinecke 2014-06-18 15:17:21 +02:00 committed by Daniel Molkentin
parent 856d039ba4
commit 5d1ea2d726
1 changed files with 3 additions and 0 deletions

View File

@ -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 &&