17

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?

top 15 comments
sorted by: hot top controversial new old
[-] PseudoSpock@lemmy.dbzer0.com 2 points 3 days ago

I'm glad you noticed.

[-] yardy_sardley@lemmy.ca 14 points 1 week ago* (last edited 1 week ago)

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.

[-] spacemanspiffy@lemmy.world 2 points 6 days ago

I thought I removed linux-firmware-nvidia but I guess not.

sudo pacman -R linux-firmware
sudo pacman -Rns linux-firmware-nvidia

This did the trick, thank you! Cut my fallback.img sizes almost in half!

[-] Dirk@lemmy.ml 12 points 1 week ago

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.

[-] crt0o@discuss.tchncs.de 3 points 1 week ago

Also, you can try switching to xz compression, it will reduce the image sizes by a decent amount

[-] Strit@lemmy.linuxuserspace.show 2 points 1 week ago

I think the initramfs has gotten a lot bigger over the last couple of years. More modules included, more functionality.

[-] unknowing8343@discuss.tchncs.de 2 points 1 week ago

I had the same issue, breaking the update, and the solution was something along the lines of:

  1. Edit /etc/initramfs-tools/initramfs.conf
  2. Change MODULES=most to MODULES=dep
  3. 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.

[-] Starkon@lemmy.ml 2 points 1 week ago

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.

[-] unknowing8343@discuss.tchncs.de 2 points 1 week ago

Probably, I was going by memory and these filenames are tricky 😅

[-] Sxan@piefed.zip 1 points 1 week ago
[-] NichtElias@sh.itjust.works 3 points 1 week ago

How would that affect file size of the kernel?

[-] Sxan@piefed.zip 1 points 1 week ago

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.

[-] StripedMonkey@lemmy.zip 1 points 3 days ago

Arch has had rust code in it for months, the timing is only suspicious if you're making it up in your head.

[-] MyNameIsRichard@lemmy.ml 1 points 1 week ago

Maybe it compiles to bigger binaries? I've never used Rust, so I have no idea if that's true.

[-] spacemanspiffy@lemmy.world 3 points 1 week ago

I think there is probably truth to that, but I don't think its impacting the size of my initramfs in any significant way.

this post was submitted on 24 Sep 2025
17 points (100.0% liked)

Arch Linux

9150 readers
1 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS