]> 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:05:55 +0000 (21:05 +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/95dasd_rules/parse-dasd.sh
modules.d/95zfcp_rules/parse-zfcp.sh

index eb1edf88859a5eb6c0698c2c06daf01fe7fe0467..eb4fa2270ffdbb0421542cc5cbcca3dd9a9ffb9c 100755 (executable)
@@ -36,6 +36,9 @@ ACTION=="add", SUBSYSTEM=="ccw", KERNEL=="$ccw", IMPORT{program}="collect $ccw %
 ACTION=="add", SUBSYSTEM=="drivers", KERNEL=="$_drv", IMPORT{program}="collect $ccw %k ${ccw} $_drv"
 ACTION=="add", ENV{COLLECT_$ccw}=="0", ATTR{[ccw/$ccw]online}="1"
 EOF
+    if [ -x /sbin/cio_ignore ] && ! cio_ignore -i $ccw > /dev/null ; then
+        cio_ignore -r $ccw
+    fi
 }
 
 for dasd_arg in $(getargs root=) $(getargs resume=); do
index a3282d29aff7f6dd83afad4d72fded9c3ab7b7ca..be87bae6c7562f88901ebbbc6815a776aaa8d47a 100755 (executable)
@@ -35,6 +35,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
 }
 
 for zfcp_arg in $(getargs rd.zfcp); do