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.
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
#!/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