makeInitrd: Make the compressor configurable

This commit is contained in:
Shea Levy
2013-02-19 11:49:31 -05:00
parent 7dfd7a93d4
commit 79c3f992b4
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ storePaths=$(perl $pathsFromGraph closure-*)
# Put the closure in a gzipped cpio archive.
mkdir -p $out
(cd root && find * -print0 | cpio -o -H newc --null | gzip -9 > $out/initrd)
(cd root && find * -print0 | cpio -o -H newc --null | $compressor > $out/initrd)
if [ -n "$makeUInitrd" ]; then
mv $out/initrd $out/initrd.gz