Revert "makeInitrd: Use closureInfo"

This reverts commit 776a5e6ebf.

Fixes #36268.
This commit is contained in:
Eelco Dolstra
2018-03-05 12:49:59 +01:00
parent 97693915e1
commit 165b32d386
2 changed files with 11 additions and 4 deletions
+5 -1
View File
@@ -25,9 +25,13 @@ for ((n = 0; n < ${#objects[*]}; n++)); do
done
# Get the paths in the closure of `object'.
storePaths=$(perl $pathsFromGraph closure-*)
# Paths in cpio archives *must* be relative, otherwise the kernel
# won't unpack 'em.
(cd root && cp -prd --parents $(cat $closure/store-paths) .)
(cd root && cp -prd --parents $storePaths .)
# Put the closure in a gzipped cpio archive.