mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
With the introduction of zdev for device configuration in v1.33.0, it used a hardcoded "/" to refer to the root-fs. Dracut has its own mechanism to find the root file system and to walk its device dependencies. Mkdumprd also has its own mechanism to interpret the kdump target and invokes dracut so that dracut only considers arguments from mkdumprd without any root-fs dracut would default to [--no-hostonly-default-device]. Use the dracut mechanism to walk device dependencies and individually have chzdev treat each leaf-node in the dependency tree. See also https://github.com/dracutdevs/dracut commit 83e0dc7a3dca ("Add for_each_host_dev_and_slaves for device only checking"). This enables the use of dracut options such as --add-device or --mount used in turn by mkdumprd. Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Steffen Maier <maier@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>