make-initrd: fix reproducibility problems with hard links

This commit is contained in:
Thomas Watson
2022-01-29 18:07:11 -05:00
committed by tomberek
parent f1a3e3e21c
commit d8bb89b9ff
+1 -1
View File
@@ -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.