[PATCH] Add pigz to initrd.img

Will Woods wwoods at redhat.com
Tue Feb 12 15:31:22 UTC 2013


Drastically speeds up compression of the initramfs for modern multicore
systems, doesn't slow anything down if you're on a single core machine
(like a virt guest), and only adds ~20kb to the image size. Good deal!
---
 dracut/module-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dracut/module-setup.sh b/dracut/module-setup.sh
index b9997f8..d196963 100755
--- a/dracut/module-setup.sh
+++ b/dracut/module-setup.sh
@@ -16,7 +16,7 @@ depends() {
 
 install() {
     # binaries we want in initramfs
-    dracut_install eject
+    dracut_install eject -o pigz
     # anaconda
     inst "$moddir/anaconda-lib.sh" "/lib/anaconda-lib.sh"
     inst_hook cmdline 25 "$moddir/parse-anaconda-options.sh"
-- 
1.8.1



More information about the anaconda-patches mailing list