[Pkg-raspi-maintainers] Bug#848101: Package name + config.txt & cmdline.txt as conffiles

karl156 karl156 at abwesend.de
Wed Dec 14 06:42:16 UTC 2016


Package: raspi3-firmware
Version: 1.20161123-2
Severity: important
Tags: sid

Thanks for packaging the raspi firmware.

As this package basically only contains the blobs which are working on
all Raspberry Pis (1-3), wouldn't it be more appropriate to name this
package "raspi-firmware"? (And make it available on armhf too.)


Also config.txt & cmdline.txt should be treated as conffiles so that
changes the user has made (e.g. special hdmi parameters or codec
licenses) won't get overridden on every kernel update.

I would suggest to place them somewhere in /etc instead of
auto-generating them in the kernel postinst script and just copy them to
the firmware folder in the kernel postinst script.
If you copy the kernel, initramfs + dtb to fixed positions (like the
"/vmlinuz" & "/initrd.img" symlinks) in the kernel postinst script then
config.txt & cmdline.txt don't need to be touched on every update.
Another idea would be to only write them if they don't exist yet.

I've put these two issues together because without a customizable
config.txt the package indeed only works on a raspi3 because of the
"arm_control=0x200" & "device_tree=bcm2837-rpi-3-b.dtb" lines.

Severity set to important, cause all user changes to the config files
are lost on every update, rendering this package useless for many users.



More information about the Pkg-raspi-maintainers mailing list