How to rebuild initramfs on Fedora

Earlier today while performing the update on my Fedora desktop, I encountered an issue with the new kernel update. As a result, the initramfs was not generated for the new installed kernel. So, I’ll share with you how to rebuild or generate the initramfs while fixing real issue on my Fedora workstation. First, here is an output showing the source of the issue. It might not be clear of what’s going on, but that’s okay as it’s not the main focus of this blog post....

August 21, 2024 · 5 min · 1000 words · kenno

Getting rid of old initrd files on Ubuntu

Occasionally I see some of our Ubuntu machines having /boot partition filled up by the initrd files generated from old kernels which no longer were no longer installed on the machines. root@matht232:/boot# uname -a Linux matht232 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux root@matht232:/boot# dpkg -l linux-image-\* | grep ^ii ii linux-image-5.3.0-40-generic 5.3.0-40.32~18.04.1 amd64 Signed kernel image generic ii linux-image-generic-hwe-18.04-edge 5.3.0.46.102 amd64 Generic Linux kernel image root@matht232:/boot# ls -1 /boot config-5....

April 21, 2020 · 2 min · 252 words · kenno