dracut or kdump fail to generate the initramfs with an error: "Cannot open: Operation not permitted"
Issue
- The
kdump
service fails to generate the kdumpinitramfs
with the following error messages:
# kdumpctl start
...
cpio: ./usr/sbin/vmcore-dmesg: Cannot open: Operation not permitted
cpio: ./usr/sbin/xfs_db: Cannot open: Operation not permitted
cpio: ./usr/sbin/xfs_repair: Cannot open: Operation not permitted
dracut: dracut: creation of /boot/initramfs-4.18.0-425.3.1.el8.x86_64kdump.img failed
kdump: mkdumprd: failed to make kdump initrd
- The
dracut
command fails to generate theinitramfs
with the following error messages:
# dracut -f
...
cpio: ./usr/sbin/kexec: Cannot open: Operation not permitted
cpio: ./usr/sbin/losetup: Cannot open: Operation not permitted
cpio: ./usr/sbin/lvm: Cannot open: Operation not permitted
cpio: ./usr/sbin/nologin: Cannot open: Operation not permitted
cpio: ./usr/sbin/plymouthd: Cannot open: Operation not permitted
cpio: ./usr/sbin/swapoff: Cannot open: Operation not permitted
cpio: ./usr/sbin/xfs_db: Cannot open: Operation not permitted
cpio: ./usr/sbin/xfs_repair: Cannot open: Operation not permitted
dracut: dracut: creation of /boot/initramfs-4.18.0-425.3.1.el8.x86_64.img failed
Environment
- Red Hat Entreprise Linux 8.1
- SCAP OSPP profile for security hardening
- dracut
- kdump
- fapolicyd-0.8.10-3.el8.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.