diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-28 02:18:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 02:18:19 +0200 |
commit | 569ba66b438afbb90adb14c2a51b16e6543bd3c9 (patch) | |
tree | fa82ee4792ef88954683fdf67958603cc19addcf /pkgs/tools | |
parent | a1205b945729ccbedcd441491e083ff7ea8cd6c0 (diff) | |
parent | 576aee418615cc7e6af0a493523796f981cf6a11 (diff) |
Merge pull request #263741 from katexochen/mkosi/repart-fix
mkosi: fix repart hardlink store leak into image
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/virtualization/mkosi/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/virtualization/mkosi/default.nix b/pkgs/tools/virtualization/mkosi/default.nix index 1c99d63741a79..3b1a4988f47d4 100644 --- a/pkgs/tools/virtualization/mkosi/default.nix +++ b/pkgs/tools/virtualization/mkosi/default.nix @@ -34,6 +34,16 @@ let url = "https://github.com/systemd/systemd/commit/4947de275a5553399854cc748f4f13e4ae2ba069.patch"; hash = "sha256-YIZZyc3f8pQO9fMAxiNhDdV8TtL4pXoh+hwHBzRWtfo="; }) + # repart: make sure rewinddir() is called before readdir() when performing rm -rf. Remove when upgrading to systemd 255. + (fetchpatch { + url = "https://github.com/systemd/systemd/commit/6bbb893b90e2dcb05fb310ba4608f9c9dc587845.patch"; + hash = "sha256-A6cF2QAeYHGc0u0V1JMxIcV5shzf5x3Q6K+blZOWSn4="; + }) + # Set timezone to UTC when invoking mcopy. Remove when upgrading to systemd 255. + (fetchpatch { + url = "https://github.com/systemd/systemd/commit/b2942c76adc5bb6a3e073aa5cee57834ee3a9813.patch"; + hash = "sha256-phGln3Gs9p8CsEe+1laGrm9xcUJWVbNBW0W8oR9/7YU="; + }) ]; })).override { withRepart = true; |