From d8bb89b9fff31d6de8b025ee6ee674bbc8909860 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Fri, 28 Jan 2022 21:28:16 -0600 Subject: [PATCH] make-initrd: fix reproducibility problems with hard links --- pkgs/build-support/kernel/make-initrd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/kernel/make-initrd.sh b/pkgs/build-support/kernel/make-initrd.sh index 70884741af3a..0a87d643546a 100644 --- a/pkgs/build-support/kernel/make-initrd.sh +++ b/pkgs/build-support/kernel/make-initrd.sh @@ -31,7 +31,7 @@ storePaths=$(perl $pathsFromGraph closure-*) # Paths in cpio archives *must* be relative, otherwise the kernel # won't unpack 'em. -(cd root && cp -prd --parents $storePaths .) +(cd root && cp -prP --parents $storePaths .) # Put the closure in a gzipped cpio archive.