Opensuse TW kernel hooks

Hi,

when i install a kernel, for example “rpm -i kernel-default-5.3.2” etc , dracut is invoked generating a initrd.
At the same way, when i remove a kernel via “rpm -e kernel-default-5.3.2” a script is invoked which remove from boot dir, initrd and kernel image.
The hooks located in /usr/lib/kernel/install.d are not executed.
Could i know where these hooks are defined ?

Regards

In RPM scriptlets. rpm -q --scripts.

First af all thanks for answer.
i need to add more stuff to /usr/lib/kernel/install.d,
what is the best way to invoke that hooks ?
Seems be the “kernel-install” command. is it correct?

Ok, I resolved.