summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-10-28 00:12:45 +0100
committerFlorian Klink <flokli@flokli.de>2020-10-28 23:24:17 +0100
commit987906aa5861a56437975fa8c09cb92f354de631 (patch)
treebdb1baf3bd30d107cc5bc74e499f0e66b6f0339b /pkgs/os-specific/linux/systemd
parentb027cf264c1a3e6a3e5974dce988bced95560368 (diff)
downloadnixpkgs-987906aa5861a56437975fa8c09cb92f354de631.tar
nixpkgs-987906aa5861a56437975fa8c09cb92f354de631.tar.gz
nixpkgs-987906aa5861a56437975fa8c09cb92f354de631.tar.bz2
nixpkgs-987906aa5861a56437975fa8c09cb92f354de631.tar.lz
nixpkgs-987906aa5861a56437975fa8c09cb92f354de631.tar.xz
nixpkgs-987906aa5861a56437975fa8c09cb92f354de631.tar.zst
nixpkgs-987906aa5861a56437975fa8c09cb92f354de631.zip
systemd: add withCoredump flag
… and default it to false for systemdMinimal
Diffstat (limited to 'pkgs/os-specific/linux/systemd')
-rw-r--r--pkgs/os-specific/linux/systemd/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index be21219b7d9..7e2d457bcfa 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -55,6 +55,7 @@
 , kexectools
 , bashInteractive
 
+, withCoredump ? true
 , withCompression ? true  # adds bzip2, lz4 and xz
 , withCryptsetup ? true
 , withEfi ? stdenv.hostPlatform.isEfi
@@ -85,6 +86,7 @@ assert withImportd ->
   && gnutar != null && gnupg != null && withCompression );
 
 assert withRemote -> lib.getDev curl != null;
+assert withCoredump -> withCompression;
 
 assert withCryptsetup ->
 (cryptsetup != null);
@@ -223,6 +225,7 @@ stdenv.mkDerivation {
     "-Dsysusers=false"
     "-Dtimedated=${lib.boolToString withTimedated}"
     "-Dtimesyncd=${lib.boolToString withTimesyncd}"
+    "-Dcoredump=${lib.boolToString withCoredump}"
     "-Dfirstboot=false"
     "-Dresolve=${lib.boolToString withResolved}"
     "-Dsplit-usr=false"