Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
kdump.25799
fix-network-related-dracut-options-handling-for...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-network-related-dracut-options-handling-for-fadu.patch of Package kdump.25799
From: Hari Bathini <hbathini@linux.ibm.com> Subject: Fix network-related dracut options handling for fadump case Git-commit: 52a9785840a2e47b2fe3d89a2d01e4823f424b4e References: bsc#1201051 Acked-by: Jiri Bohac <jbohac@suse.cz> Commit bbe9b1281cd6 ("Do not add network-related dracut options if ip= is set explicitly") ensures kdump network-related dracut options are set according to admin's intention. It relies on KDUMP_COMMANDLINE & KDUMP_COMMANDLNE_APPEND config options for that. But these options are currently not applicable for fadump case. Instead, rely on the parameters passed to the running kernel, as capture kernel boot is likely to use the same parameters as production kernel for fadump. Fixes: bbe9b1281cd6 ("Do not add network-related dracut options if ip= is set explicitly") Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> diff --git a/dracut/module-setup.sh b/dracut/module-setup.sh index c13c544..38bc334 100755 --- a/init/module-setup.sh +++ b/init/module-setup.sh @@ -178,7 +178,15 @@ kdump_cmdline_zfcp() { kdump_ip_set_explicitly() { local _opt - for _opt in $KDUMP_COMMANDLINE $KDUMP_COMMANDLINE_APPEND + local opts + + if [ "$KDUMP_FADUMP" = yes ]; then + _opts="`cat /proc/cmdline`" + else + _opts="$KDUMP_COMMANDLINE $KDUMP_COMMANDLINE_APPEND" + fi + + for _opt in $_opts do if [ "${_opt%%=*}" = "ip" -a \ "${_opt#*=}" != "$_opt" ] -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor