summaryrefslogtreecommitdiff
path: root/modules.d/95dasd
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-09-29 14:47:29 +0200
committerHarald Hoyer <harald@redhat.com>2009-09-29 14:47:29 +0200
commit5fcc6b4a0a089202dafc88f4de1d9a6f93c7137d (patch)
tree3925c5f0fd1e67ecdfb160327d5310c77cd617e9 /modules.d/95dasd
parent678b3605e882c234e784d84324057188f73697b4 (diff)
downloaddracut-5fcc6b4a0a089202dafc88f4de1d9a6f93c7137d.tar.gz
dracut-5fcc6b4a0a089202dafc88f4de1d9a6f93c7137d.tar.bz2
dracut-5fcc6b4a0a089202dafc88f4de1d9a6f93c7137d.zip
rename 95s390 to 95dasd
Diffstat (limited to 'modules.d/95dasd')
-rwxr-xr-xmodules.d/95dasd/check5
-rwxr-xr-xmodules.d/95dasd/install3
-rwxr-xr-xmodules.d/95dasd/installkernel5
-rwxr-xr-xmodules.d/95dasd/parse-dasd.sh7
4 files changed, 20 insertions, 0 deletions
diff --git a/modules.d/95dasd/check b/modules.d/95dasd/check
new file mode 100755
index 00000000..bfc4052d
--- /dev/null
+++ b/modules.d/95dasd/check
@@ -0,0 +1,5 @@
+#!/bin/bash
+arch=$(arch)
+[ "$arch" = "s390" -o "$arch" = "s390x" ] || exit 1
+
+exit 0
diff --git a/modules.d/95dasd/install b/modules.d/95dasd/install
new file mode 100755
index 00000000..8545a253
--- /dev/null
+++ b/modules.d/95dasd/install
@@ -0,0 +1,3 @@
+#!/bin/bash
+inst_hook cmdline 30 "$moddir/parse-dasd.sh"
+
diff --git a/modules.d/95dasd/installkernel b/modules.d/95dasd/installkernel
new file mode 100755
index 00000000..2e2277c3
--- /dev/null
+++ b/modules.d/95dasd/installkernel
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+instmods dasd_mod dasd_eckd_mod dasd_fba_mod \
+ zfcp
+
diff --git a/modules.d/95dasd/parse-dasd.sh b/modules.d/95dasd/parse-dasd.sh
new file mode 100755
index 00000000..e4d7ba03
--- /dev/null
+++ b/modules.d/95dasd/parse-dasd.sh
@@ -0,0 +1,7 @@
+[ -d /etc/modprobe.d ] || mkdir /etc/modprobe.d
+
+dasd_arg=$(getarg dasd=)
+if [ -n "$dasd_arg" ]; then
+ echo "option dasd_mod dasd=$dasd_arg" >> /etc/modprobe.d/dasd.conf
+fi
+unset dasd_arg