On donderdag 10 december 2020 00:39:55 CET Diederik de Haas wrote:
> Recently there were 2 issues raised wrt raspi-firmware:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975943 and
> https://salsa.debian.org/raspi-team/image-specs/-/issues/37
>
> In my last comment on the salsa issue, I reported that running 'update-
> initramfs -u' consistently triggered the issue.
It turns out that DPKG_MAINTSCRIPT_ARCH is not set on all invocations,
resulting in incorrect code paths to be followed.
Added some 'echo' statements to /etc/kernel/postinst.d/z50-raspi-firmware and
that resulted in the following output:
diederik@rpi-mpd:~$ sudo aptitude reinstall linux-image-5.9.0-4-arm64
[sudo] password for diederik:
The following packages will be REINSTALLED:
linux-image-5.9.0-4-arm64
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not
upgraded.
Need to get 0 B/45.1 MB of archives. After unpacking 0 B will be used.
[master 022a0d4] saving uncommitted changes in /etc prior to apt run
1 file changed, 4 insertions(+), 4 deletions(-)
(Reading database ... 34689 files and directories currently installed.)
Preparing to unpack .../linux-image-5.9.0-4-arm64_5.9.11-1_arm64.deb ...
Unpacking linux-image-5.9.0-4-arm64 (5.9.11-1) over (5.9.11-1) ...
/etc/kernel/postrm.d/z50-raspi-firmware:
Script params, count=2:
Param 1: '5.9.0-4-arm64'
Param 2: '/boot/vmlinuz-5.9.0-4-arm64'
Setting up linux-image-5.9.0-4-arm64 (5.9.11-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.9.0-4-arm64
Script params, count=0:
DEB_MAINT_PARAMS:
configure
DPKG_MAINTSCRIPT_ARCH:
arm64
/etc/kernel/postinst.d/z50-raspi-firmware:
Script params, count=2:
Param 1: '5.9.0-4-arm64'
Param 2: '/boot/vmlinuz-5.9.0-4-arm64'
DEB_MAINT_PARAMS:
configure 5.9.11-1
DPKG_MAINTSCRIPT_ARCH:
arm64
diederik@rpi-mpd:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.9.0-4-arm64
Script params, count=0:
DEB_MAINT_PARAMS:
configure
DPKG_MAINTSCRIPT_ARCH:
Patch/MR submitted to raspi-firmware to fix the check.
Attachment:
signature.asc
Description: This is a digitally signed message part.