From 987906aa5861a56437975fa8c09cb92f354de631 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 28 Oct 2020 00:12:45 +0100 Subject: [PATCH] systemd: add withCoredump flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … and default it to false for systemdMinimal --- pkgs/os-specific/linux/systemd/default.nix | 3 +++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 4 insertions(+) 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" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 860674cf118..e802a6d403b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18663,6 +18663,7 @@ in systemdMinimal = systemd.override { pname = "systemd-minimal"; withCompression = false; + withCoredump = false; withCryptsetup = false; withEfi = false; withHostnamed = false;