nixos/systemd: patch to avoid failure during systemd reexec

This regressed in a250927957
This commit is contained in:
Vladimír Čunát
2026-09-20 07:58:35 +02:00
parent 17b4eb6732
commit 4ecabf5d48

View File

@@ -244,7 +244,21 @@ in
options.systemd = {
package = mkPackageOption pkgs "systemd" { };
package = mkPackageOption pkgs "systemd" { } // {
apply =
pkg:
pkg.overrideAttrs (prevAttrs: {
patches = prevAttrs.patches or [ ] ++ [
# Remove this with v261.5; it fixes an issue with switch-to-configuration
# https://github.com/NixOS/nixpkgs/pull/558350#issuecomment-5740583354
(pkgs.fetchpatch {
name = "postpone-d-bus-queue-dispatch.patch";
url = "https://github.com/systemd/systemd/commit/266b3e50218e2b27cd67d2371c165bf53ad3bf00.patch";
hash = "sha256-dEEzZUqicnmgDuXVBV1y0BxzgKbb6Q47Dmxj+O71bFE=";
})
];
});
};
enableStrictShellChecks = mkEnableOption "" // {
description = ''