nixos/stage-1: fix initrd secrets with custom compressor

This commit is contained in:
Ben Wolsieffer 2020-07-11 17:24:59 -04:00
parent 8d05772134
commit ab5faea41e

View File

@ -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