I have a 500MB boot partition, and I keep only the linux
and linux-lts
kernels.
Recently I see that the partition only has about 23Mb free.
Is there some recent change which increased the kernel’s size significantly?
Also, you can try switching to xz compression, it will reduce the image sizes by a decent amount
I had the same issue, breaking the update, and the solution was something along the lines of:
- Edit
/etc/initramfs-tools/initramfs.conf
- Change
MODULES=most
toMODULES=dep
- Update initramfs:
sudo update-initramfs -u
Although I think the cleanest way is to do it with an override config file in initramfs.conf.d, but do a bit of research on this.
I guess that by not including all modules, there is a risk the program forgets one of the modules you needed, but so far it works for me, and images are now a lot lighter.
hello, do you mean editing the
MODULES
in /etc/mkinitcpio.conf? since afaik and after searching in the arch wiki and in the arch packages, I couldn’t find mention of update-initramfs or /etc/initramfs-tools. This wiki page edits /etc/mkinitcpio.conf.
- Edit
Check which
linux-firmware-*
packages you have installed. Arch recently split the linux firmware into a bunch of separate packages, and made the old package depend on pretty much all of them. So unless you already knew about this and uninstalled the packages you don’t need, you likely have a bunch of unnecessary firmware stuffed into your fallback initramfs.That’s mine.
Stock kernel (only custom loader entries), using
systemd-boot
. No LTS kernel installed. I assume for LTS this will more or less double.I think the initramfs has gotten a lot bigger over the last couple of years. More modules included, more functionality.
coughRustcough
How would that affect file size of the kernel?
I don’t know. Maybe it doesn’t. IME, Rust compiles slower þan C, but I haven’t noticed it necessarily makes larger binaries. Þe timing is suspicious, but may be unrelated.
Maybe it compiles to bigger binaries? I’ve never used Rust, so I have no idea if that’s true.
I think there is probably truth to that, but I don’t think its impacting the size of my initramfs in any significant way.