mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev/dracut: fix kdump build to integrate with site support
This complements v2.27.0 commit73c46a3056("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 commit2e89722ef0("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:73c46a3056("zdev/dracut: fix kdump by only activating required devices") Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com> Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com> Signed-off-by: Steffen Maier <maier@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
a07d1bca74
commit
4b486e87cc
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user