flash-kernel breaks when locally built RPI kernels are installed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flash-kernel (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have been repackaging the Raspberry Pi Foundation's official kernels for some time with this script:
https:/
I could always install these kernels before and have flash-kernel not break.
The updates to flash-kernel in lunar cause it to fail, with a "dpkg-query: no packages found matching" message.
What's the best way to handle this? The kernel packages always end up built with naming such as linux-headers-
I use this in /etc/flash-
# To override fields include the Machine field and the fields you wish to
# override.
#
# e.g. to override Boot-Device on the Dreamplug to sdb rather than sda
#
#Machine: Globalscale Technologies Dreamplug
#Boot-Device: /dev/sdb1
Machine: Raspberry Pi 4 Model B
Machine: Raspberry Pi 4 Model B Rev 1.1
Machine: Raspberry Pi 4 Model B Rev 1.2
Machine: Raspberry Pi 4 Model B Rev 1.4
Machine: Raspberry Pi Compute Module 4 Rev 1.0
Machine: Raspberry Pi 400 Rev 1.0
Machine: Raspberry Pi 400 Rev 1.1
Machine: Raspberry Pi *
Kernel-Flavors: any
#Method: pi
#DTB-Id: bcm2711-rpi-4-b.dtb
#U-Boot-
#Required-Packages: u-boot-tools
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: flash-kernel 3.106ubuntu14
Uname: Linux 6.1.20-v8+ aarch64
ApportVersion: 2.26.0-0ubuntu2
Architecture: arm64
CasperMD5CheckR
Date: Fri Mar 24 11:55:21 2023
ImageMediaBuild: 20211013
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=screen.
XDG_RUNTIME_
SourcePackage: flash-kernel
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
This is the message I am seeing:
Setting up flash-kernel (3.106ubuntu14) ... kernel/ dtbs/bcm2711- rpi-4-b. dtb into /boot/dtbs/ 6.1.20- v8+/./bcm2711- rpi-4-b. dtb rpi-4-b. dtb. rpi-4-b. dtb.
Using DTB: bcm2711-rpi-4-b.dtb
flash-kernel: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.142ubuntu1) ...
Processing triggers for flash-kernel (3.106ubuntu14) ...
Using DTB: bcm2711-rpi-4-b.dtb
Installing /etc/flash-
Taking backup of bcm2711-
Installing new bcm2711-
dpkg-query: no packages found matching
dpkg: error processing package flash-kernel (--configure):
installed flash-kernel package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
flash-kernel
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)