Systemd-boot entries are not created on kernel upgrade

Hi. As title says, systemd-boot entries are no longer created on kernel upgrades. I have no idea why this is the case. Below is the transaction log for running: dnf reinstall “kernel-*”. Help is appreciated. Thank you.

Transaction Summary
===========================================================================

2023-10-12T20:14:23+0800 INFO Total download size: 109 M
2023-10-12T20:14:23+0800 INFO Installed size: 159 M
2023-10-12T20:14:35+0800 INFO Downloading Packages:
2023-10-12T20:21:39+0800 INFO -------------------------------------------------------------------------------------------------------------------------------------------------------
2023-10-12T20:21:39+0800 INFO Total                                                                                                                  262 kB/s | 109 MB     07:04     
2023-10-12T20:21:39+0800 DEBUG Using rpmkeys executable at /bin/rpmkeys to verify signatures
2023-10-12T20:21:43+0800 INFO Running transaction check
2023-10-12T20:21:45+0800 INFO Transaction check succeeded.
2023-10-12T20:21:45+0800 INFO Running transaction test
2023-10-12T20:21:50+0800 INFO Transaction test succeeded.
2023-10-12T20:21:50+0800 DDEBUG timer: transaction test: 5182 ms
2023-10-12T20:21:50+0800 DEBUG snapper: creating pre_snapshot
2023-10-12T20:21:50+0800 DEBUG snapper: created pre_snapshot 1792
2023-10-12T20:21:50+0800 INFO Running transaction
2023-10-12T20:21:50+0800 DDEBUG RPM transaction start.
2023-10-12T20:25:50+0800 DDEBUG RPM transaction over.
2023-10-12T20:25:51+0800 DDEBUG timer: verify transaction: 477 ms
2023-10-12T20:25:51+0800 DDEBUG timer: transaction: 240855 ms
2023-10-12T20:25:51+0800 DEBUG snapper: creating post_snapshot
2023-10-12T20:25:51+0800 DEBUG snapper: created post_snapshot 1793
2023-10-12T20:25:51+0800 DEBUG Completion plugin: Generating completion cache...
2023-10-12T20:25:52+0800 DEBUG Reinstalled: kernel-core-6.5.6-200.fc38.x86_64
2023-10-12T20:25:52+0800 DEBUG Reinstalled: kernel-headers-6.5.4-200.fc38.x86_64
2023-10-12T20:25:52+0800 DEBUG Reinstalled: kernel-modules-6.5.6-200.fc38.x86_64
2023-10-12T20:25:52+0800 DEBUG Reinstalled: kernel-modules-core-6.5.6-200.fc38.x86_64
2023-10-12T20:25:52+0800 DEBUG Reinstalled: kernel-modules-extra-6.5.6-200.fc38.x86_64
2023-10-12T20:25:52+0800 INFO Complete!
2023-10-12T20:25:52+0800 DDEBUG Cleaning up.
2023-10-12T20:25:52+0800 DDEBUG /var/cache/dnf/updates-b7ba662710b98f1a/packages/kernel-modules-6.5.6-200.fc38.x86_64.rpm removed
2023-10-12T20:25:52+0800 DDEBUG /var/cache/dnf/updates-b7ba662710b98f1a/packages/kernel-core-6.5.6-200.fc38.x86_64.rpm removed
2023-10-12T20:25:52+0800 DDEBUG /var/cache/dnf/updates-b7ba662710b98f1a/packages/kernel-modules-core-6.5.6-200.fc38.x86_64.rpm removed
2023-10-12T20:25:52+0800 DDEBUG /var/cache/dnf/updates-b7ba662710b98f1a/packages/kernel-modules-extra-6.5.6-200.fc38.x86_64.rpm removed
2023-10-12T20:25:52+0800 DDEBUG /var/cache/dnf/updates-b7ba662710b98f1a/packages/kernel-headers-6.5.4-200.fc38.x86_64.rpm removed
2023-10-12T20:25:53+0800 DDEBUG Plugins were unloaded.

Those entries are generated by the /usr/lib/kernel/install.d/90-loaderentry.install script. Maybe temporarily changing set -e to set -ex in that file and reinstalling a kernel would be one way to get more debug info?

Thank you very much for your reply. Turns out I accidentally removed systemd-boot-unsigned, causing the problems above. Reinstalling it fixed the issue. I apologise for wasting your time. Have a great day.