about summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
authorJulien Malka <julien@malka.sh>2023-11-07 22:56:48 +0100
committerJulien Malka <julien@malka.sh>2023-11-07 22:56:48 +0100
commite626f8468bc61c97665fff4dc57c02a9b4c4dc9c (patch)
tree284e01c4f5af44d99ce891358a0cc0d2ff2c13e4 /nixos/modules/system/boot/stage-1.nix
parent85f1ba3e51676fa8cc604a3d863d729026a6b8eb (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.nix2
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"
       '';