My system is a few years old. It came with Fedora 23 or 24 installed as the only OS. The boot partition was set up at 898MB. Currently it reports ZERO empty space.
Thing seemed to be okay until kernel 6.16.4. It failed to install due to lack of space. I deleted kernel 6.15.9 and managed to get it installed but… another new kernel has failed to install for the same reason.
There are currently 3 kernels - each having a config, initramfs, symvers, system.map, and vmlinuz file. There are also files for a rescue image. The initramfs files for the 6.16 kernels are 168Mb each vs. 105Mb for the 6.15 kernel.
Is there something I can delete to recover space or should I expand the boot partition?
This issue is affecting other users and is being investigated. It appears to be caused by a new dracut version. dracut is provided by kernel.org. This document descirbes dracut configuration options that can be used to reduce the size of initrd files until a proper solution appears.
I would recommend to temporarily add installonly_limit=2 to /etc/dnf/dnf.conf instead of more complicated options. Just doing this and running dnf distro-sync should remove the oldest installed kernel, and giving you enough space in /boot for an upgrade.
This config change is also easy to revert (just remove that line from the config file again) once it is no longer necessary.
I have a similar problem with the very latest (today’s) sytem (including kernel) update of FC43 on Thinkpad Tp15. I am going to add the line: installonly_limit=2 to /etc/dnf/dnf.conf and I would like to make more space by deleting the oldest kernel. But which files exactly should I delete without fear of running into troubles? If I issue: sudo ls -l boot/6.17.0-0 (i.e. the oldest present kernel, the others are 6.17.0-63 and 6.17.1-300) I get the following files:
Can I remove all of them?
Note: I have run the dnf distro-sync as suggested by F. Valentini but the oldest kernel files are still there (even after having restarted the system), and I get the same complain about insufficient space when I call the “updates” application. Thus I think I should do as Nancy did, i.e. removing the oldest kernel files by hand, but I want to be sure no to run into troubles.
Many thanks in advance.
Can you try sudo dnf distro-sync --exclude "kernel-core-6.17.4-300.fc43"? This should prevent the new kernel from being installed, but uninstall one old one. The next update without that exclude argument should then work. I think.
If you have installed the nvidia driver and are not using the kernel nouveau driver, you can exclude the nouveau driver from being added to the initramfs. This will significantly reduce the size of the initramfs files.
Thank you for the suggestion: unfortunately it seems I get mre troubles:
sudo dnf distro-sync --exclude “kernel-core-6.17.4-300.fc43”
Updating and loading repositories:
Fedora 43 - x86_64 - Updates 100% | 22.9 KiB/s | 13.8 KiB | 00m01s
Repositories loaded.
Failed to resolve the transaction:
Problem 1: installed package kernel-6.17.0-63.fc43.x86_64 requires kernel-modules-uname-r = 6.17.0-63.fc43.x86_64, but none of the providers can be installed
conflicting requests
Problem 2: installed package kernel-core-6.17.0-63.fc43.x86_64 requires kernel-modules-core-uname-r = 6.17.0-63.fc43.x86_64, but none of the providers can be installed
conflicting requests
You can try to add to command line:
–skip-broken to skip uninstallable packages
And when I added --skip-broken the output was the same.
Once more, thank you both: everything worked and now I only see two kernels, the current one and the former.
Mark: I have checked and I confirm I am using the nidia driver and not the nouveau one:
inxi -G
…
Device-2: NVIDIA TU104M [GeForce RTX 2070 SUPER Mobile / Max-Q]
driver: nvidia v: 580.95.05
…
and: lsmod | grep nouveau does not return anything. I have made a search about how to exclude he nouveau driver from initramfs, and I found this:
a) Create the /usr/lib/modprobe.d/blacklist-nouveau.conf file and add the following information to the file: