"ldconfig exited ungracefully" - when dracut run as part of service

Solution Unverified - Updated -

Issue

  • SELinux is denying ldconfig read and write access to some files. Therefore, dracut -f prints the following message:

    /usr/bin/dracut -f /boot/initramfs-3.10.0-1062.1.2.el7.x86_64.img 3.10.0-1062.1.2.el7.x86_64
    ldconfig exited ungracefully
    
  • When trying to execute dracut as a service, ldconfig fails due to not being able to read/write files from dracut's temporary directory used as its chroot

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 7.7
    • 8.0
    • 8.1
  • SELinux

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