]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95dasd_rules: Auto-generate udev rule for ipl device
authorHannes Reinecke <hare@suse.de>
Thu, 26 Jun 2014 12:04:19 +0000 (14:04 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Fri, 23 Jun 2017 19:26:42 +0000 (21:26 +0200)
We should be generating a udev rule for the ipl device; it'll
be enabled anyway.

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

index 146f24fb83e5c25ea99a2f57ccfac5d141d6bab8..d431fdf8c8a375adcb4052ddb345b464450a188b 100755 (executable)
@@ -42,6 +42,15 @@ ACTION=="add", ENV{COLLECT_$ccw}=="0", ATTR{[ccw/$ccw]online}="1"
 EOF
 }
 
+if [[ -f /sys/firmware/ipl/ipl_type &&
+            $(</sys/firmare/ipl/ipl_type) = "ccw" ]] ; then
+    (
+        local _ccw=$(cat /sys/firmware/ipl/device)
+
+        create_udev_rule $_ccw
+    )
+fi
+
 for dasd_arg in $(getargs root=) $(getargs resume=); do
     (
         case $dasd_arg in