Red Hat Bugzilla – Bug 526505
initramfs is not deleted with a kernel upgrade
Last modified: 2009-10-24 21:24:52 EDT
Description of problem:
When yum installs a new kernel and removes the old one (mine is set up to keep 3), the 4th-oldest is deleted, but not the associated initramfs file.
Version-Release number of selected component (if applicable):
Allow yum to automatically install a new kernel and remove the 4th-oldest one. initramfs files are piling up.
Steps to Reproduce:
1. see above
when a kernel is deleted, either via yum or rpm or an associated gui, the corresponding initramfs file should also be removed.
assigning to kernel
kernel preuninstall runs:
/sbin/new-kernel-pkg --rminitrd ...
kernel should own the initramfs image in the rpm filelist
(In reply to comment #3)
> kernel should own the initramfs image in the rpm filelist
Yes, the kernel owns the initrd. And it deletes it by calling "/sbin/new-kernel-pkg --rminitrd".
Got a new kernel this morning. On my x86_64 system, this now works. Will try the i686 system later, when the repos are synced with today's updates (weren't yet, for some reason, although x86_64 was).