]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Translate dasd arg contents into proper dasd.conf
authorJesse Keating <jkeating@redhat.com>
Fri, 18 May 2012 21:06:54 +0000 (14:06 -0700)
committerJesse Keating <jkeating@redhat.com>
Mon, 21 May 2012 21:19:07 +0000 (14:19 -0700)
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.

modules.d/95dasd/module-setup.sh
modules.d/95dasd/parse-dasd.sh

index 88dfc6d55b55e151f361d33aa1c68cc9d3019f29..74efc7b296be5a6bbee2bab04b681256aa505d2c 100755 (executable)
@@ -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
index 4aeecd5d79a64a3464654b6340ab982211398867..b3d18fa229645493603f6b0fa1c9be6620be4d20 100755 (executable)
@@ -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