"ldconfig exited ungracefully" - when dracut run as part of service
Issue
-
SELinux is denying
ldconfigread and write access to some files. Therefore,dracut -fprints 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
dracutas a service,ldconfigfails 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.