Bug#1109098: systemd-boot: installed initramfs post-update hook assumes kernel images are compressed

Evgeni Dimitrov evgeni.dimitrov at gmail.com
Fri Jul 11 11:10:16 BST 2025


Package: systemd-boot
Version: 257.7-1
Severity: important
X-Debbugs-Cc: evgeni.dimitrov at gmail.com

Dear Maintainer,

This package installs an initramfs hook in /etc/initramfs/post-update.d/systemd-boot
which refers to "/boot/vmlinuz-*", however on riscv64 the kernel images
are uncompressed and named "/boot/vmlinux-*".

Predicatably, this causes errors during update-initramfs operations.

update-initramfs: Generating /boot/initrd.img-6.12.35+deb13-riscv64
Updating kernel version 6.12.35+deb13-riscv64 in systemd-boot...
Failed to open kernel image file '/boot/vmlinuz-6.12.35+deb13-riscv64': No such file or directory
run-parts: /etc/initramfs/post-update.d//systemd-boot exited with return code 1

See below for an example fix, which seems to work for me.

-- System Information:
Debian Release: 13.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: riscv64

Kernel: Linux 6.12.35+deb13-riscv64 (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd-boot depends on:
ii  libc6               2.41-9
ii  libsystemd-shared   257.7-1
ii  systemd             257.7-1
ii  systemd-boot-efi    257.7-1
ii  systemd-boot-tools  257.7-1

Versions of packages systemd-boot recommends:
ii  efibootmgr  18-2

Versions of packages systemd-boot suggests:
ii  systemd-ukify  257.7-1

-- Configuration Files:
/etc/initramfs/post-update.d/systemd-boot changed:
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" "$(echo /boot/vmlinu[xz]-$1)" "$2"


-- no debconf information



More information about the Pkg-systemd-maintainers mailing list