Control: retitle -1 DPKG_MAINTSCRIPT_ARCH should be used in 
/etc/kernel/postinst.d/z50-raspi-firmware instead of dpkg --print-architecture
Control: tags -1 patch

The following patch should fix this bug:

--- var/tmp/z50-raspi-firmware  2020-10-08 10:01:37.576672275 +0900
+++ etc/kernel/postinst.d/z50-raspi-firmware    2020-10-08 10:09:47.032477030 
+0900
@@ -61,7 +61,7 @@
 # copy and rename the available device tree binaries
 # the bootloader will pick the right device tree binary
 # if it is named according to the system on chip family name
-arch=$(dpkg --print-architecture)
+arch=$DPKG_MAINTSCRIPT_ARCH
 if [ "arm64" = "$arch" ]; then
   dtb_path="/usr/lib/linux-image-${latest_kernel#/boot/vmlinuz-}/broadcom"
 else

Best regards, Ryutaroh

Reply via email to