summaryrefslogtreecommitdiff
path: root/modules.d/95dasd
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2012-05-18 14:06:54 -0700
committerJesse Keating <jkeating@redhat.com>2012-05-21 14:19:07 -0700
commitb0772db56a532e19379ddd4369f3668d3192908c (patch)
tree165b5efe7ae5ede922d5928ec38f8e7ae198f004 /modules.d/95dasd
parentd69514332910847f57c63c636103bb6f757a44a6 (diff)
downloaddracut-b0772db56a532e19379ddd4369f3668d3192908c.tar.gz
dracut-b0772db56a532e19379ddd4369f3668d3192908c.tar.bz2
dracut-b0772db56a532e19379ddd4369f3668d3192908c.zip
Translate dasd arg contents into proper dasd.conf
This uses a (new) s390utils utility to normalize the range we might get in a dasd argument and generates a properly formatted output for dasd.conf.
Diffstat (limited to 'modules.d/95dasd')
-rwxr-xr-xmodules.d/95dasd/module-setup.sh2
-rwxr-xr-xmodules.d/95dasd/parse-dasd.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules.d/95dasd/module-setup.sh b/modules.d/95dasd/module-setup.sh
index 88dfc6d5..74efc7b2 100755
--- a/modules.d/95dasd/module-setup.sh
+++ b/modules.d/95dasd/module-setup.sh
@@ -18,7 +18,7 @@ installkernel() {
install() {
inst_hook cmdline 30 "$moddir/parse-dasd.sh"
- dracut_install tr dasdinfo dasdconf.sh
+ dracut_install tr dasdinfo dasdconf.sh normalize_dasd_arg
if [[ $hostonly ]]; then
inst /etc/dasd.conf
fi
diff --git a/modules.d/95dasd/parse-dasd.sh b/modules.d/95dasd/parse-dasd.sh
index 4aeecd5d..b3d18fa2 100755
--- a/modules.d/95dasd/parse-dasd.sh
+++ b/modules.d/95dasd/parse-dasd.sh
@@ -1,10 +1,10 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
-for dasd_arg in $(getargs rd.dasd 'rd_DASD='); do
+for dasd_arg in $(getargs rd.dasd= rd_DASD= DASD=); do
(
IFS=","
set $dasd_arg
- echo "$@" >> /etc/dasd.conf
+ echo "$@" | normalize_dasd_arg >> /etc/dasd.conf
)
done