make-initrd: fix reproducibility problems with hard links

This commit is contained in:
Thomas Watson 2022-01-28 21:28:16 -06:00 committed by tomberek
parent f1a3e3e21c
commit d8bb89b9ff

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.