makeInitrd: Use closureInfo

This commit is contained in:
Eelco Dolstra
2018-02-23 16:41:31 +01:00
parent d12c9911df
commit 776a5e6ebf
4 changed files with 7 additions and 12 deletions
+1 -5
View File
@@ -25,13 +25,9 @@ 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 $storePaths .)
(cd root && cp -prd --parents $(cat $closure/store-paths) .)
# Put the closure in a gzipped cpio archive.