On 18/11/26 at 16:38, basti wrote:
Multiple files are updated via
"/etc/kernel/postinst.d/z50-raspi-firmware"

- Does the file exist?
- Is the file executable?

~# LC_ALL=C.UTF-8 ls -la /etc/kernel/postinst.d/z50-raspi-firmware
-rwxr-xr-x 1 root root 6994 Oct 3 2022 /etc/kernel/postinst.d/z50-raspi-firmware

- You can add "set -x" at the beginning to generate debug output.

Yes, but first a question: are the files under "/etc/kernel/postinst.d/" triggered only by a kernel update? (or "apt install --reinstall" command)?


root@rpi-ks:~# ls -la /etc/kernel/postinst.d/z50-raspi-firmware
-rwxr-xr-x 1 root root 7483 Jan  5  2025 /etc/kernel/postinst.d/z50- raspi-firmware
root@rpi-ks:~#

root@rpi-ks:~# cat /etc/default/raspi-firmware-custom
gpu_mem=16
root@rpi-ks:~#

This results in the following:

root@rpi-ks:~# tail /boot/firmware/config.txt
enable_uart=1
upstream_kernel=1

kernel=vmlinuz-6.12.117+deb13-arm64
# For details on the initramfs directive, see
# https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=10532
initramfs initrd.img-6.12.117+deb13-arm64

# Inserted by /etc/default/raspi-firmware-custom
gpu_mem=16
root@rpi-ks:~#

as you can see, it generate a line
# Inserted by /etc/default/raspi-firmware-custom

when the file is found and read
I suppose that adding empty line or comment in "/etc/default/raspi-firmware-custom" it isn't a problem, however that file belongs to Trixie, I'm on Bookworm and sadly here doesn't happen. I have 2 packages for raspi-firmware installed:

~# dpkg -l | grep raspi
ii raspi-firmware 1.20220830+ds-1 all Raspberry Pi family GPU firmware and bootloaders ii raspi3-firmware 1.20210303+ds-2 arm64 transitional package

~# dpkg -L raspi3-firmware
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/raspi3-firmware
/usr/share/doc/raspi3-firmware/changelog.Debian.gz
/usr/share/doc/raspi3-firmware/copyright
/etc/kernel/postrm.d/z50-raspi3-firmware
/etc/kernel/postinst.d/z50-raspi3-firmware
/etc/initramfs/post-update.d/z50-raspi3-firmware
/etc/default/raspi3-firmware

Should I have to purge "raspi3-firmware" package?

Kind regards,
--
Franco Martelli

Reply via email to