🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.maint.boot
1 messages
1 total messages Started by Hans Heukenkamp Mon, 02 Nov 2026 10:50
Bug#1148115: Confirmed on Cubietruck (armhf), workaround tested successfully
#95
Author: Hans Heukenkamp
Date: Mon, 02 Nov 2026 10:50
60 lines
4310 bytes
Package: flash-kernel
Version: flash-kernel
Followup-For: Bug #1148115
X-Debbugs-Cc: debian-arm@lists.debian.org, hans.heukenkamp@microdoc.com
User: debian-arm@lists.debian.org
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads