I've noticed on my Centos 8 installs in Amazon EC2 that I always get this error below when a new kernel is installed and dracut is invoked to generate a new image.
During dnf update
...
Code: Select all
Running scriptlet: kernel-core-4.18.0-305.12.1.el8_4.x86_64 8/8
dracut-install: ERROR: installing 'sgdisk'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.ikK32L/initramfs -a sgdisk
I'm not sure what happens with the dracut-install call that it cannot install sgdisk but the package name is gdisk. Could it be that dracut needs to look for the correct package name and not the binary the package installs?
gdisk should be available but if dracut depends on sgdisk should dracut not have gdisk as a dependency so that it will always be available?