- Red Hat Enterprise Linux (RHEL) 8
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
- 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.
# yum install -y selinux-policy-targeted
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.
- Red Hat Enterprise Linux
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.