]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
linux-firmware: Compress firmware on disk
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Mar 2022 13:48:24 +0000 (13:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Mar 2022 13:48:24 +0000 (13:48 +0000)
commiteb9d61ac825a8b7e6cb44c41bcf42d8831bb25b7
tree9f299f7f72da42e5890d3597dbe8f7a04d34e9cc
parent2188812cb0747d16415f7f2d307ea93a45d8ce78
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]