]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
linux-firmware: Compress firmware on disk
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Mar 2022 15:24:49 +0000 (15:24 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Wed, 23 Mar 2022 16:11:14 +0000 (16:11 +0000)
commit77e3829dc1ba7d98516c552e5c1b7c87677dee90
tree6f01fb66bbf708062d27e368b081be076bc1851c
parent247e97800d294acac4c22376951ca6acaf81f5fa
linux-firmware: Compress firmware on disk

This patch enabled that we can compress any firmware files on disk. This
will save some space since /lib/firmware is becoming larger with every
release.

From formerly 828MiB, this is now using ~349MiB which is a saving of
about 480MiB on disk. This is helping us a lot fighting to contain the
distribution to 2GB on /.

Some other firmware that is installed in other packages is not
compressed with this patch which is a bit sad, but potentially not worth
the effort.

In order to ship this change with a Core Update, it might be intuitive
to remove /lib/firmware first and then extract the new update with all
new files. However, I do not know if this all will compress as well as
before since now the files are already individually compressed. It might
be a challenge to ship this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/linux-firmware
lfs/linux-firmware
src/patches/0001-Add-support-for-compressing-firmware-in-copy-firmwar.patch [new file with mode: 0644]