[Bug 2012750] Re: flash-kernel breaks when locally built RPI kernels are installed.
satmandu
2012750 at bugs.launchpad.net
Fri Apr 14 21:03:41 UTC 2023
@waveform, sorry to bother late in the release calendar. It isn't
urgent, I'm just trying to work around it on my end, but I can manually
downgrade the function file until this is addressed cleanly.
This issue is due to my changing of a file path in the DEBIAN/postinst
hook portion of my kernel install:
version=$kver
image_path=/boot/vmlinuz-\$version
# Install kernel (This avoids an issue if /boot is fat32.)
mount -o remount,rw /boot 2>/dev/null || true
cp /usr/share/rpikernelhack/vmlinuz-"$kver" \$image_path
But this is due to a potentially fat32 boot partition not being
supported for installs of files by dpkg.
It is explicitly suggested to use a postinst hook to install on such
partitions here:
https://wiki.debian.org/Teams/Dpkg/FAQ#Q:_What_are_the_filesystem_requirements_by_dpkg.3F
So ideally, the get_kernel_status function would handle dpkg-query not
finding the kernel in the originally installed location.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to flash-kernel in Ubuntu.
https://bugs.launchpad.net/bugs/2012750
Title:
flash-kernel breaks when locally built RPI kernels are installed.
Status in flash-kernel package in Ubuntu:
Incomplete
Bug description:
I have been repackaging the Raspberry Pi Foundation's official kernels
for some time with this script:
https://gist.github.com/satmandu/a507c59d84737f6d29ff353395819d51
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-6.1.20-v8+_all.deb and linux-
image-6.1.20-v8+_arm64.deb.
I use this in /etc/flash-kernel/db:
# 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-Script-Name: bootscr.rpi
#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
CasperMD5CheckResult: unknown
Date: Fri Mar 24 11:55:21 2023
ImageMediaBuild: 20211013
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=screen.xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: flash-kernel
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.flash-kernel.db: 2022-03-29T10:53:48.654542
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/2012750/+subscriptions
More information about the foundations-bugs
mailing list