On update to fedora 38, one new pkg that was installed was kernel-uki-virt, which i believe is only intended for virtual machines. During installation process i got a notification saying efi partion was almost full. I was surprised because I thought fedora used a separate partition for boot. Looking at my efi partition, it seems most of the space is taken by a vmlinuz file generated by this pkg.
Why is this file not being saved in the separate boot partition where the normal kernel files are stored? And can I delete the kernel-uki-virt pkg since I dont use virtual machines? Right now I have 40 mb space left in efi partition but since fedora also stores 2 old versions of the kernel, efi will probably have no space left the next time the kernel pkgs update.
It is unclear if grub2 is able to boot the nki kernel. You can boot it using systemd-boot and systemd-boot has been able to do that from the beginning. However, that is not easy if you also want to keep secure boot enabled.
You can build a nki kernel yourself by using dracut with the “–uefi” option, and that has worked for already several years.
The uki kernel went in via a dependency, if I remember correctly via VirtualBox, but I cannot trace it back anymore. may be the dependency is gone. It works fine in qemu-kvm, where you can boot it from efi directly. Since the uki kernel is designed to be started by UEFI directly, it has to reside in the EFI partition, because without additional drivers UEFI can only read VFAT. This partition could be too small for it. You can safely remove the package, but it could come back…
thanks, yeah i removed it and thankfully it didnt cause any problems or come back in updates
slightly ot but i wonder if i can also remove kernel-core and kernel-modules-core
they seem to be redundant as I already have kernel and kernel-modules installed
and they appeared after updating to fedora 38
Actually kernel-core is a central part of the kernel software, as is kernel-modules-core.
I believe the kernel package is a meta-package that pulls in all the other parts needed, and without that package it seems kernel upgrades do not proceed properly.
I would recommend you do not attempt to remove any of the kernel packages from fedora since they all work together. Exceptions to this are the kernel-headers and kernel-devel packages along with the *-debug packages which are used for compiling and testing. Even then, if you are using anything that uses an out-of-tree kernel module that needs compiled (such as VirtualBox, nvidia, and the like) you will still need at least the kernel-devel package. Note that these consume little if any space in /boot or /boot/efi.