about summary refs log tree commit diff
path: root/pkgs/build-support/kernel/make-initrd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/kernel/make-initrd.sh')
-rw-r--r--pkgs/build-support/kernel/make-initrd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/kernel/make-initrd.sh b/pkgs/build-support/kernel/make-initrd.sh
index 70884741af3a6..0a87d643546a5 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.