[Pkg-raspi-maintainers] Bug#983409: raspi-firmware: /etc/kernel/postinst.d/z50-raspi-firmware fails to ignore old-dkms initrds

Gunnar Wolf gwolf at gwolf.org
Wed Apr 28 17:14:25 BST 2021


Control: tags -1 - patch
Control: tags -1 + pending

Hi,

While your patch would work for arm64 (RPi 3 and 4 families), it would
not work for armel (RPi 0/1) or armhf (RPi 2). The suffix of the
kernel version denotes the machine type, not just the architecture;
our working armel kernel is -rpi, and our working armhf kernel is
-armmp.

We could set those suffixes based on the output of "dpkg
--print-architecture", but I fear that would also end up in unbootable
systems for some people who built their own kernels or so.

I will go the other route, and -same as I'm doing grep -v \.dpkg-bak$-
will exclude the known suffix you report for DKMS kernels. I hope that
solves the issue!



More information about the Pkg-raspi-maintainers mailing list