diff options
author | Julien Malka <julien@malka.sh> | 2023-11-07 22:56:48 +0100 |
---|---|---|
committer | Julien Malka <julien@malka.sh> | 2023-11-07 22:56:48 +0100 |
commit | e626f8468bc61c97665fff4dc57c02a9b4c4dc9c (patch) | |
tree | 284e01c4f5af44d99ce891358a0cc0d2ff2c13e4 /nixos/modules/system/boot/stage-1.nix | |
parent | 85f1ba3e51676fa8cc604a3d863d729026a6b8eb (diff) |
nixos/stage1: make append_initrd_secrets script reproducible
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index a3551f68dbe89..64ab28d1806b6 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -432,7 +432,7 @@ let } # mindepth 1 so that we don't change the mode of / - (cd "$tmp" && find . -mindepth 1 -print0 | sort -z | bsdtar --uid 0 --gid 0 -cnf - -T - | bsdtar --null -cf - --format=newc @-) | \ + (cd "$tmp" && find . -mindepth 1 | xargs touch -amt 197001010000 && find . -mindepth 1 -print0 | sort -z | bsdtar --uid 0 --gid 0 -cnf - -T - | bsdtar --null -cf - --format=newc @-) | \ ${compressorExe} ${lib.escapeShellArgs initialRamdisk.compressorArgs} >> "$1" ''; |