diff options
author | Harald Hoyer <harald@redhat.com> | 2009-09-29 14:47:29 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-09-29 14:47:29 +0200 |
commit | 5fcc6b4a0a089202dafc88f4de1d9a6f93c7137d (patch) | |
tree | 3925c5f0fd1e67ecdfb160327d5310c77cd617e9 /modules.d/95dasd | |
parent | 678b3605e882c234e784d84324057188f73697b4 (diff) | |
download | dracut-5fcc6b4a0a089202dafc88f4de1d9a6f93c7137d.tar.gz dracut-5fcc6b4a0a089202dafc88f4de1d9a6f93c7137d.tar.bz2 dracut-5fcc6b4a0a089202dafc88f4de1d9a6f93c7137d.zip |
rename 95s390 to 95dasd
Diffstat (limited to 'modules.d/95dasd')
-rwxr-xr-x | modules.d/95dasd/check | 5 | ||||
-rwxr-xr-x | modules.d/95dasd/install | 3 | ||||
-rwxr-xr-x | modules.d/95dasd/installkernel | 5 | ||||
-rwxr-xr-x | modules.d/95dasd/parse-dasd.sh | 7 |
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 |