Control: tags -1 wontfix Control: close -1 On Wed, 07 May 2025 10:55:39 +0200 Benjamin Drung <bdr...@ubuntu.com> wrote: > Package: systemd > Version: 257.5-2 > Severity: normal > X-Debbugs-Cc: bdr...@debian.org > > Dear Maintainer, > > The upstream dracut TEST-43-KERNEL-INSTALL fails when run as > autopkgtest. I was able to strip that test down to following: > > ``` > podman run -it debian:unstable bash > apt update > apt install --no-install-recommends -y dracut-test dracut-core linux- image-generic systemd-container systemd-sysv systemd-ukify util-linux zstd > KVERSION=$(cd /lib/modules; ls -1 | tail -1) > TESTDIR="$(mktemp -d -t dracut-test.XXXXXXXXXX)" > mkdir -p /run/kernel > echo 'initrd_generator=dracut' >> /run/kernel/install.conf > export BOOT_ROOT="$TESTDIR" > . /etc/os-release && TOKEN="$ID" > mkdir -p "$BOOT_ROOT/$TOKEN/$KVERSION" "$BOOT_ROOT/loader/entries" "$BOOT_ROOT/$TOKEN/0-rescue/loader/entries" > kernel-install -v add-all > ```
The problem is in the last command, instead you need to use something like: for k in /boot/vmlinuz-* ; do [ -f "$k" ] || continue ver=$(basename "$k" | sed s/^vmlinuz-//) kernel-install add "$ver" "$k" done