From 4b486e87cc2875f532784bd69ee680e714508059 Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Tue, 1 Aug 2023 18:58:45 +0200 Subject: [PATCH] zdev/dracut: fix kdump build to integrate with site support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This complements v2.27.0 commit 73c46a30563d ("zdev/dracut: fix kdump by only activating required devices"). On older distributions, the absence of zdev_id can cause the following harmless error messages for each udev event: (spawn)[387]: failed to execute '/lib/s390-tools/zdev_id' \ '/lib/s390-tools/zdev_id': No such file or directory Kdump is still functional nonetheless. As of v2.24.0 commit 2e89722ef0ec ("zdev: make site specific udev-rule for ccw"), the invocations of chzdev within zdev/dracut/95zdev-kdump/module-setup.sh generate /etc/udev/rules.d/40-zdev-id.rules. And so even though zdev-kdump intentionally does not install zdev_id and its previous singular user zdev/udev/81-dpm.rules into the kdump initrd, because DPM device auto configuration is not desired in the kdump environment, zdev_id meanwhile has an additional functionality for site-support and the generated 40-zdev-id.rules calls /lib/s390-tools/zdev_id. By installing zdev_id into the kdump initrd, 40-zdev-id.rules can work without error. Fixes: 73c46a30563d ("zdev/dracut: fix kdump by only activating required devices") Reviewed-by: Alexander Egorenkov Reviewed-by: Vineeth Vijayan Signed-off-by: Steffen Maier Signed-off-by: Jan Höppner --- zdev/dracut/95zdev-kdump/module-setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zdev/dracut/95zdev-kdump/module-setup.sh b/zdev/dracut/95zdev-kdump/module-setup.sh index ad8e3093..4ce2fc67 100755 --- a/zdev/dracut/95zdev-kdump/module-setup.sh +++ b/zdev/dracut/95zdev-kdump/module-setup.sh @@ -46,6 +46,10 @@ installkernel() { install() { local _tempfile + # zdev_id is not functionally required for kdump but optionally + # installing avoids error messages from zdev site udev rule processing + inst_multiple -o /lib/s390-tools/zdev_id + # Obtain kdump target device configuration _tempfile=$(mktemp --tmpdir dracut-zdev.XXXXXX)