I’m trying to make a smallish image for an embedded system.
I start with a kickstart file, where I start with @^minimal-environment
and add a couple of packages that I need (tar
, jq
, sqlite
and some others). Then I add out proprietary software, and end up with an image that compresses down to about 600-800Mb, depending on software. For various reasons, I’d really like to reduce this size, so I was looking into the filesystem to see if there’s anything that can be removed.
I found that the /lib/firmware/
contains a lot of different firmware stuff that I probably don’t need. (We’re running on well-defined hardware, so it’s not like we need to have drivers for any and all kind of wifi chip that someone might plug in.)
I noticed that the iwlxxx-firmware
packages were quite substantial, and removed them, which saved me quite a bit of space. But there’s still 300MB of firmware files on the target, and I’m pretty certain that I don’t need all of them. The files are already compressed, so they take up roughly the same amount in my compressed images.
Is there a way to figure out what firmware files are actually used, and remove the unnecessary ones?