Unable to Run Dracut on Newly-Installed RHEL 8 Minimal Install with ext4 Filesystem

Solution In Progress - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) 8

Issue

  • After installing RHEL 8 on a new server with the “Minimal Install” (@^minimal-environment) option with ext4 at the filesystem, dracut fails with the following:

    cp: setting attributes for '/var/tmp/dracut.cJd38m/initramfs/usr/bin/bash': Operation not supported        
    dracut-install: ERROR: installing '/bin/sh'
    dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.cJd38m/initramfs /bin/sh
    dracut: Will not override existing initramfs (/boot/initramfs-4.18.0-80.el8.x86_64.img) without --force
    

Resolution

  • This is being tracked in private BZ 1710536.
  • Please open a new support case. This will help us document the scope of impact and allow you to receive updates as a solution is developed.

Work-Around

  1. Install the selinux-policy-targeted package:

    # yum install -y selinux-policy-targeted
    
  2. Once the package is installed, dracut should work as expected.

NOTE: If this problem occurs during during a kickstart build or post-build of a server, include the selinux-policy-targeted package in the%packages section of the kickstart file.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

2 Comments

I believe the correct package is selinux-policy-targeted

After installing it, dracut worked fine, but after rebooting, some services were failing and login wasn't possible. I had to boot to rescue, edit /etc/sselinux/config and set selinux to permissive, touch /.autorelabel and reboot.

After all that, it's OK

This issue is still not resolved as of 24/01/2020. I am still unable to run dracut on RHEL 8.1 with LVM/ext4 / (I don't think that LVM matters at all though)..