From: Harald Hoyer Date: Wed, 22 Jul 2009 14:34:12 +0000 (+0200) Subject: 95s390: add support to boot from s390 dasds X-Git-Tag: 0.7~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93ce0a7a1cf2ad69bef5b792dcd2b35b925e186f;p=thirdparty%2Fdracut.git 95s390: add support to boot from s390 dasds command line parameter: DASD dasd=.... same syntax as the kernel module parameter (s390 only) --- diff --git a/dracut.8 b/dracut.8 index 55a403773..27497b84e 100644 --- a/dracut.8 +++ b/dracut.8 @@ -151,6 +151,11 @@ disable DM RAID detection .B rd_DM_UUID= only activate the raid sets with the given UUID +.SH DASD +.TP +.B dasd=.... +same syntax as the kernel module parameter (s390 only) + .SH DHCP .TP .B root=dhcp diff --git a/modules.d/95s390/check b/modules.d/95s390/check new file mode 100755 index 000000000..bfc4052d2 --- /dev/null +++ b/modules.d/95s390/check @@ -0,0 +1,5 @@ +#!/bin/bash +arch=$(arch) +[ "$arch" = "s390" -o "$arch" = "s390x" ] || exit 1 + +exit 0 diff --git a/modules.d/95s390/install b/modules.d/95s390/install new file mode 100755 index 000000000..85009dcd6 --- /dev/null +++ b/modules.d/95s390/install @@ -0,0 +1,3 @@ +#!/bin/bash +inst_hook cmdline 30 "$moddir/parse-s390.sh" + diff --git a/modules.d/95s390/installkernel b/modules.d/95s390/installkernel new file mode 100755 index 000000000..2e2277c36 --- /dev/null +++ b/modules.d/95s390/installkernel @@ -0,0 +1,5 @@ +#!/bin/bash + +instmods dasd_mod dasd_eckd_mod dasd_fba_mod \ + zfcp + diff --git a/modules.d/95s390/parse-s390.sh b/modules.d/95s390/parse-s390.sh new file mode 100755 index 000000000..786d7c5f9 --- /dev/null +++ b/modules.d/95s390/parse-s390.sh @@ -0,0 +1,9 @@ +initrdargs="$initrdargs dasd" + +[ -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