systemd: add withCoredump flag
… and default it to false for systemdMinimal
This commit is contained in:
@@ -55,6 +55,7 @@
|
|||||||
, kexectools
|
, kexectools
|
||||||
, bashInteractive
|
, bashInteractive
|
||||||
|
|
||||||
|
, withCoredump ? true
|
||||||
, withCompression ? true # adds bzip2, lz4 and xz
|
, withCompression ? true # adds bzip2, lz4 and xz
|
||||||
, withCryptsetup ? true
|
, withCryptsetup ? true
|
||||||
, withEfi ? stdenv.hostPlatform.isEfi
|
, withEfi ? stdenv.hostPlatform.isEfi
|
||||||
@@ -85,6 +86,7 @@ assert withImportd ->
|
|||||||
&& gnutar != null && gnupg != null && withCompression );
|
&& gnutar != null && gnupg != null && withCompression );
|
||||||
|
|
||||||
assert withRemote -> lib.getDev curl != null;
|
assert withRemote -> lib.getDev curl != null;
|
||||||
|
assert withCoredump -> withCompression;
|
||||||
|
|
||||||
assert withCryptsetup ->
|
assert withCryptsetup ->
|
||||||
(cryptsetup != null);
|
(cryptsetup != null);
|
||||||
@@ -223,6 +225,7 @@ stdenv.mkDerivation {
|
|||||||
"-Dsysusers=false"
|
"-Dsysusers=false"
|
||||||
"-Dtimedated=${lib.boolToString withTimedated}"
|
"-Dtimedated=${lib.boolToString withTimedated}"
|
||||||
"-Dtimesyncd=${lib.boolToString withTimesyncd}"
|
"-Dtimesyncd=${lib.boolToString withTimesyncd}"
|
||||||
|
"-Dcoredump=${lib.boolToString withCoredump}"
|
||||||
"-Dfirstboot=false"
|
"-Dfirstboot=false"
|
||||||
"-Dresolve=${lib.boolToString withResolved}"
|
"-Dresolve=${lib.boolToString withResolved}"
|
||||||
"-Dsplit-usr=false"
|
"-Dsplit-usr=false"
|
||||||
|
|||||||
@@ -18663,6 +18663,7 @@ in
|
|||||||
systemdMinimal = systemd.override {
|
systemdMinimal = systemd.override {
|
||||||
pname = "systemd-minimal";
|
pname = "systemd-minimal";
|
||||||
withCompression = false;
|
withCompression = false;
|
||||||
|
withCoredump = false;
|
||||||
withCryptsetup = false;
|
withCryptsetup = false;
|
||||||
withEfi = false;
|
withEfi = false;
|
||||||
withHostnamed = false;
|
withHostnamed = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user