summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2020-08-13 07:54:01 +0100
committerGitHub <noreply@github.com>2020-08-13 07:54:01 +0100
commit28224516e5cfce2782fc8bbc700ca814d4648cb7 (patch)
tree4ee1ca9693d3bb3bc5d208b45d15561068bb40ce /nixos/modules/system/boot/stage-1.nix
parent45d0002b9016885aadb67364ed3e53b86a4ab5c4 (diff)
parentab5faea41ef2ee8a2e0ad65dd6054bb316db6e17 (diff)
downloadnixpkgs-28224516e5cfce2782fc8bbc700ca814d4648cb7.tar
nixpkgs-28224516e5cfce2782fc8bbc700ca814d4648cb7.tar.gz
nixpkgs-28224516e5cfce2782fc8bbc700ca814d4648cb7.tar.bz2
nixpkgs-28224516e5cfce2782fc8bbc700ca814d4648cb7.tar.lz
nixpkgs-28224516e5cfce2782fc8bbc700ca814d4648cb7.tar.xz
nixpkgs-28224516e5cfce2782fc8bbc700ca814d4648cb7.tar.zst
nixpkgs-28224516e5cfce2782fc8bbc700ca814d4648cb7.zip
Merge pull request #92964 from lopsided98/initrd-secrets-compressor
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r--nixos/modules/system/boot/stage-1.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index 7f13f67e8ef..a04660fb56e 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -374,7 +374,8 @@ let
           ) config.boot.initrd.secrets)
          }
 
-        (cd "$tmp" && find . | cpio -H newc -o) | gzip >>"$1"
+        (cd "$tmp" && find . -print0 | sort -z | cpio -o -H newc -R +0:+0 --reproducible --null) | \
+          ${config.boot.initrd.compressor} >> "$1"
       '';
 
 in