]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Rename existing 95dasd handling to 95dasd_mod.
authorDavid Cantrell <dcantrell@redhat.com>
Mon, 2 Nov 2009 19:18:42 +0000 (09:18 -1000)
committerHarald Hoyer <harald@redhat.com>
Tue, 3 Nov 2009 09:43:03 +0000 (10:43 +0100)
Rename the existing rd_DASD module handler to rd_DASD_MOD.

modules.d/95dasd_mod/check [new file with mode: 0755]
modules.d/95dasd_mod/install [new file with mode: 0755]
modules.d/95dasd_mod/installkernel [new file with mode: 0755]
modules.d/95dasd_mod/parse-dasd.sh [new file with mode: 0755]

diff --git a/modules.d/95dasd_mod/check b/modules.d/95dasd_mod/check
new file mode 100755 (executable)
index 0000000..a26196c
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+arch=$(uname -m)
+[ "$arch" = "s390" -o "$arch" = "s390x" ] || exit 1 
+
+exit 0
diff --git a/modules.d/95dasd_mod/install b/modules.d/95dasd_mod/install
new file mode 100755 (executable)
index 0000000..8545a25
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+inst_hook cmdline 30 "$moddir/parse-dasd.sh"
+
diff --git a/modules.d/95dasd_mod/installkernel b/modules.d/95dasd_mod/installkernel
new file mode 100755 (executable)
index 0000000..c83c194
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+instmods dasd_mod dasd_eckd_mod dasd_fba_mod dasd_diag_mod
+       
+
diff --git a/modules.d/95dasd_mod/parse-dasd.sh b/modules.d/95dasd_mod/parse-dasd.sh
new file mode 100755 (executable)
index 0000000..6902eeb
--- /dev/null
@@ -0,0 +1,7 @@
+[ -d /etc/modprobe.d ] || mkdir /etc/modprobe.d
+
+dasd_arg=$(getarg rd_DASD_MOD=)
+if [ -n "$dasd_arg" ]; then
+       echo "options dasd_mod dasd=$dasd_arg" >> /etc/modprobe.d/dasd.conf
+fi
+unset dasd_arg