-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kdump: always set kdump.conf defaults #19434
Conversation
2940fd2
to
a32e96b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'm fine with that approach, just one detail.
cd5300e
to
8715417
Compare
When an administrator clears core_collector setting and we save a new configuration the core_collector value is set to `makedumpfile` without arguments. This is an invalid setting for kdump and not what the kdump.conf man page recommends as default setting. The downside of hardcoding the default recommendation is that it may change over time, so this change includes a test to validate that when absent we re-set the default value.
8715417
to
5f779cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
if (target.type === "ssh") { | ||
settings._internal.core_collector.value += " -F"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 2 added lines are not executed by any test. Details
@@ -273,7 +280,7 @@ export class ConfigFile { | |||
if ("core_collector" in settings._internal) | |||
settings._internal.core_collector.value = settings._internal.core_collector.value + " -c"; | |||
else | |||
settings._internal.core_collector = { value: "makedumpfile -c" }; | |||
settings._internal.core_collector = { value: defaultCoreCollector }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added line is not executed by any test. Details
When an administrator clears core_collector setting and we save a new configuration the core_collector value is set to
makedumpfile
without arguments. This is an invalid setting for kdump and not what the kdump.conf man page recommends as default setting.The downside of hardcoding the default recommendation is that it may change over time, so this change includes a test to validate that when absent we re-set the default value.