Skip to content
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

crashdump module: fix evaluation. #30415

Merged
merged 1 commit into from Oct 25, 2017
Merged

Conversation

symphorien
Copy link
Member

Motivation for this change

the module was broken. It wouldn't even evaluate.
To work properly, this PR depends on #30413

The increase in memory size is motivated by my own needs and https://bugs.launchpad.net/ubuntu/+source/kexec-tools/+bug/785394

Is using kernelPatches to change kernel configuration options the canonical way to do so ? Should the documentation mention that ?

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@bjornfor
Copy link
Contributor

CC @viric.

@viric
Copy link
Member

viric commented Oct 16, 2017

All fixes welcome! I can't easily evaluate it other than to repeat the claimed tests.

@bjornfor
Copy link
Contributor

I've got no experience with the crashdump module, but IMHO it'd be nice to have more info in the commit message than "fix evaluation", to help users/reviewers.

The module would fail to evaluate:
```The option value `boot.crashDump.kernelPackages' in ... is not a package.```

Removed the option boot.crashDump.kernelPackage in favor of using
boot.kernelPatches which automatically chooses the same kernel version
as boot.kernelPackage instead of overriding it.

Added option boot.crashDump.reservedMemory to customized crash kernel
memory.

Changed the default of boot.crashDump.kernelParams as the current one
seemed to have no effect.
@symphorien
Copy link
Member Author

I added a description in the commit message.

Copy link
Contributor

@bjornfor bjornfor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Not tested.

@joachifm joachifm merged commit 6dfbef0 into NixOS:master Oct 25, 2017
@symphorien symphorien deleted the crashdump branch May 18, 2019 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants