On 11/02/2025 11:12, Thomas Lange wrote:
"/etc/kernel/postinst.d/dracut which generates an initrd and calls
kernel-install"
I wonder how the postinst.d/dracut calls kernel-install? Have you logs
or some debug output that shows this?
At the end of `/usr/bin/dracut`:
```bash
…
# Invoke policy-conformant bootloader hooks
if [ -z "$NO_POST_UPDATE_HOOKS" ] && [ -d /etc/initramfs/post-update.d/
]; then
run-parts --arg="${kernel}" --arg="${outfile}" \
/etc/initramfs/post-update.d/
fi
exit 0
```
Then, in `/etc/initramfs/post-update.d/systemd-boot`:
```bash
#!/bin/sh
set -eu
test -x /usr/bin/bootctl || exit 0
bootctl is-installed --quiet || exit 0
echo "Updating kernel version $1 in systemd-boot..."
kernel-install add "$1" "/boot/vmlinuz-$1" "$2"
```
So, this happens if you have systemd-boot and dracut installed.
Kind regards,
-- Mourad DC