Package: flash-kernel
Version: flash-kernel
Followup-For: Bug #1148115
X-Debbugs-Cc: [email protected], [email protected]
User: [email protected]
Usertags: armhf

Dear Maintainer,

I can confirm this bug on a Cubietruck 3 (Allwinner A20, armhf) running Debian 
13 Trixie with a kernel from trixie-backports.

**Affected packages:**
- flash-kernel 3.110~bpo13+1
- linux-image-7.2.11+deb13-armmp-lpae 7.2.11-1~bpo13+1
- initramfs-tools 0.148.4

During kernel installation, flash-kernel failed with:

```
dpkg-query: no packages found matching
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
```

The problem originates in `get_kernel_status()` in 
`/usr/share/flash-kernel/functions`.

The function uses `dpkg-query --search` to identify the package owning 
`/boot/vmlinuz-$version`. With the new split kernel packaging, this file is no 
longer owned by a package. Instead, `linux-binary-7.2.11+deb13-armmp-lpae` 
provides the kernel binary at:

```
/usr/lib/modules/7.2.11+deb13-armmp-lpae/vmlinuz
```

I implemented a local workaround in `get_kernel_status()` that retains the 
existing package lookup and falls back to `/usr/lib/modules/$ver/vmlinuz` if 
the first lookup returns no package.

**Results:**
- `flash-kernel` completed successfully.
- `dpkg --configure -a` completed without errors.
- Both `flash-kernel` and `initramfs-tools` are fully configured.
- The regenerated `boot.scr` successfully booted Linux 7.2.11 on the Cubietruck.

The running kernel is now:

```
Linux cubie 7.2.11+deb13-armmp-lpae #1 SMP Debian 7.2.11-1~bpo13+1 (2026-10-18) 
armv7l GNU/Linux
```

This confirms that the fallback lookup resolves the installation failure and 
that the resulting kernel boots successfully on real armhf hardware.


-- System Information:
Debian Release: 13.7
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'testing')
Architecture: armhf (armv7l)

Kernel: Linux 7.2.11+deb13-armmp-lpae (SMP w/2 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to