makeInitrd: Use closureInfo
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user