dracut fails - dracut-install: ERROR: installing 'sgdisk'

Issues related to applications and software problems and general support
Post Reply
faramirza
Posts: 27
Joined: 2019/03/19 12:13:28

dracut fails - dracut-install: ERROR: installing 'sgdisk'

Post by faramirza » 2021/09/08 08:58:55

Hi,

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
The same error pops up when I run dracut -f.

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?

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dracut fails - dracut-install: ERROR: installing 'sgdisk'

Post by TrevorH » 2021/09/08 09:39:03

For information on filing bugs against CentOS Linux or CentOS Stream please see https://wiki.centos.org/ReportBugs
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke


User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dracut fails - dracut-install: ERROR: installing 'sgdisk'

Post by TrevorH » 2021/09/08 12:09:28

I suspect that won't get fixed. CentOS 8 goes EOL in about 3 months. If you want it fixed then recreate on Stream or RHEL and report on bugzilla.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply