systemdMinimal: expose withRepart flag and disable it

systemd-repart relies on cryptsetup to perform LUKS operations,
therefore, it's not suitable for systemdMinimal.
This commit is contained in:
Raito Bezarius 2023-06-19 02:39:30 +02:00 committed by nikstur
parent 749e19a64f
commit 18b500811c
2 changed files with 4 additions and 0 deletions

View file

@ -92,6 +92,7 @@
, withCompression ? true # adds bzip2, lz4, xz and zstd
, withCoredump ? true
, withCryptsetup ? true
, withRepart ? true
, withDocumentation ? true
, withEfi ? stdenv.hostPlatform.isEfi
, withFido2 ? true
@ -146,6 +147,7 @@ assert withCoredump -> withCompression;
assert withHomed -> withCryptsetup;
assert withHomed -> withPam;
assert withUkify -> withEfi;
assert withRepart -> withCryptsetup;
let
wantCurl = withRemote || withImportd;
@ -498,6 +500,7 @@ stdenv.mkDerivation (finalAttrs: {
"-Dlibidn2=${lib.boolToString withLibidn2}"
"-Dfirstboot=${lib.boolToString withFirstboot}"
"-Dsysusers=${lib.boolToString withSysusers}"
"-Drepart=${lib.boolToString withRepart}"
"-Dquotacheck=false"
"-Dldconfig=false"
"-Dsmack=true"

View file

@ -28973,6 +28973,7 @@ with pkgs;
withCompression = false;
withCoredump = false;
withCryptsetup = false;
withRepart = false;
withDocumentation = false;
withEfi = false;
withFido2 = false;