summary refs log tree commit diff
path: root/nixos/modules/system/boot
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-08-13 21:59:15 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-08-13 21:59:15 +0200
commitafe22f645aa613f4e2c14172daba037875af39b6 (patch)
tree505edf28b87250af4758c20678ec2dec0146fcd0 /nixos/modules/system/boot
parent7e189c56a16382e1987a847b24bc34d8b957fd98 (diff)
parentc35a75c28cd090893452e97d6b2112ee44b42f58 (diff)
downloadnixpkgs-afe22f645aa613f4e2c14172daba037875af39b6.tar
nixpkgs-afe22f645aa613f4e2c14172daba037875af39b6.tar.gz
nixpkgs-afe22f645aa613f4e2c14172daba037875af39b6.tar.bz2
nixpkgs-afe22f645aa613f4e2c14172daba037875af39b6.tar.lz
nixpkgs-afe22f645aa613f4e2c14172daba037875af39b6.tar.xz
nixpkgs-afe22f645aa613f4e2c14172daba037875af39b6.tar.zst
nixpkgs-afe22f645aa613f4e2c14172daba037875af39b6.zip
Merge branch 'staging-next' into staging
Diffstat (limited to 'nixos/modules/system/boot')
-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