From 38bdc13b6dae2c99a83f389639fee44bf2d3e766 Mon Sep 17 00:00:00 2001 From: Garry Filakhtov Date: Tue, 21 Feb 2023 18:59:11 +1100 Subject: [PATCH] systemd: disable dependencies for minimal build The `systemdMinimal` build is used purely for Udev and therefore does not require all the extra dependencies that are needed for normal operation. As more flags were exposed to allow disabling additional opional dependencies the `systemdMinimal` will now take advantage of those. --- pkgs/top-level/all-packages.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99611ae1cfa5249..5064548b20c563b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26880,8 +26880,10 @@ with pkgs; }; systemdMinimal = systemd.override { pname = "systemd-minimal"; + withAcl = false; withAnalyze = false; withApparmor = false; + withAudit = false; withCompression = false; withCoredump = false; withCryptsetup = false; @@ -26892,7 +26894,9 @@ with pkgs; withHomed = false; withHwdb = false; withImportd = false; + withKmod = false; withLibBPF = false; + withLibidn2 = false; withLocaled = false; withLogind = false; withMachined = false; @@ -26900,6 +26904,7 @@ with pkgs; withNss = false; withOomd = false; withPCRE2 = false; + withPam = false; withPolkit = false; withPortabled = false; withRemote = false; @@ -26912,13 +26917,17 @@ with pkgs; }; systemdStage1 = systemdMinimal.override { pname = "systemd-stage-1"; + withAcl = true; withCryptsetup = true; withFido2 = true; + withKmod = true; + withPam = true; withTpm2Tss = true; }; systemdStage1Network = systemdStage1.override { pname = "systemd-stage-1-network"; withNetworkd = true; + withLibidn2 = true; };