Why dracut fails to generate initrd image with error /usr/contrib/bin/gzip.gz already exist

Solution Verified - Updated -

Issue

  • Unable to generate initrd image with dracut

  • New kernel installation fails below error:

ERROR: installing kernel-3.10.0-xx.xx.el7.x86_64: no space left for creating initramfs. Clean up /boot partition and re-run '/usr/sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install 3.10.0-xx.xxel7.x86_64 warning: %posttrans(kernel-3.10.0-xx.xx.el7.x86_64) scriptlet failed, exit status 1                                                                    
Non-fatal POSTTRANS scriptlet failure in rpm package kernel-3.10.0-xx.xx.el7.x86_64

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content