mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
While parsing the rd.dasd kernel parameter, the dracut module currently creates two separate udev rules for a single DASD — one for ECKD type and one for FBA type. Because the kernel parameter alone does not provide enough information to reliably determine the DASD type, this dual configuration can lead to inconsistencies. Update the logic to determine the DASD type dynamically by parsing the modalias of available devices. If a device is not present during boot, both udev rules will be generated. Also add --no-module-load to the chzdev functions, because during this time, we do not want chzdev to load the dasd module. The goal here is to generate the right udev-rules only. Suggested-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>