Eos-dracut hooks missing?

Hello,

I’d like to know if there’s something wrong on my side or not.
I have eos-dracut installed and when I check for some hook :

yay -F /usr/share/libalpm/hooks/60-dracut-remove.hook
usr/share/libalpm/hooks/60-dracut-remove.hook is owned by endeavouros/eos-dracut 1.7-1
usr/share/libalpm/hooks/60-dracut-remove.hook is owned by extra/dracut 109-1

they should be installed, but they’re not :

yay -Ql dracut | grep hook

gives nothing, on the other hand no problem with dracut from extra repo :

yay -Ql dracut | grep hook
dracut /usr/share/libalpm/hooks/
dracut /usr/share/libalpm/hooks/60-dracut-remove.hook
dracut /usr/share/libalpm/hooks/90-dracut-install.hook

Can someone confirm eos-dracut provides hooks or not ?

eos-dracut provides hooks for grub.
kernel-install-for-dracut provides hooks for systemd-boot(with different names)
dracut does not provide hooks

Our dracut package doesn’t provide hooks because that would conflict with the hooks we provide in eos-dracut and/or kernel-install-for-dracut

With dracut from extra installed the hooks are there :

ls /usr/share/libalpm/hooks/*dracut*
/usr/share/libalpm/hooks/60-dracut-remove.hook  /usr/share/libalpm/hooks/90-dracut-install.hook

they’re not with eos-dracut.

First a clarification. eos-dracut is a different package than the dracut package in the EOS repos.

The dracut package in the EOS repo does not have the hooks and should not have the hooks. If our package had those hooks, it would break initramfs generation in EOS. eos-dracut is a package that only has the hooks and scripts used for automation when using grub.

Can you explain the challenge you are trying to overcome here? Also, are you using grub or systemd-boot in EOS.

My bad, I use Grub, after uninstalling a kernel, I noticed the boot image was still there, but it should have been removed by the hook. I thought the hooks were in the dracut package, but they were in eos-dracut.

I’ll have to test a kernel install/uninstall to see if the problem remains.

1 Like

Yes, I would make sure that you have eos-dracut installed in addition to dracut

1 Like