DASD arguments can come from either a CMSCONFFILE line (DASD=) or from kernel arguments parsed by dracut (rd.dasd= rd_DASD= DASD=). In all cases, what's passed could be a single device, a range, a comma separated combination of both, with optional attributes in parens. The device listing could be a full device number (X.X.XXXX) or truncated to the last for (XXXX), or even the last three (XXX). This content needs to be parsed and normalized into full device strings, with options added. I've written a simple shell script that will take as standard input the DASD argument value and returns as standard output proper format for /etc/dasd.conf I've attached the code here, as I'm unsure of the process to get it upstream into s390-tools. This will be used by Dracut modules as part of system bring up for s390x.
Created attachment 585515 [details] normalize_dasd_arg
/etc/{dasd,zfcp}.conf is Red Hat/Fedora way of maintaining persistent storage configuration. IBM works on a new way that would be part of s390-tools and will be used by all distros. All the "local" stuff is collected and tracked at http://fedorapeople.org/gitweb?p=sharkcz/public_git/utils.git;a=summary and I will add it there.
Can we get this build soon? It's necessary for an upcoming deadline.
http://fedorapeople.org/gitweb?p=sharkcz/public_git/utils.git;a=commit;h=ff3f09c1d921e53465de490752981a1fcbed5f39