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
```

kernel-install fails with following output despite
/boot/vmlinuz-6.12.25-amd64 being present:

```
BOOT_ROOT (/tmp/dracut-test.MXxjFPqL0V) set via environment.
INITRD_GENERATOR (dracut) set via config.
Loaded config.
MACHINE_ID=c375c2aee5b74bc1bd1ab76b4d6dc506 set via /etc/machine-id.
Using entry token: c375c2aee5b74bc1bd1ab76b4d6dc506
Not adding version '6.12.25-amd64', because kernel image not found.
No kernels to install found.
```

-- 
Benjamin Drung
Debian & Ubuntu Developer

Reply via email to