From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Epiphany/1.6.3 Description of problem: Running Transaction Installing: kernel-smp ######################### [1/2] error: unpacking of archive failed on file /boot/System.map-2.6.11-1.1366_FC4smp;429f0ea6: cpio: write My boot partition is 100 megabytes, and it's full. I have 22 kernels installed. Please can there be an option in /etc/sysconfig/kernel to specify the number of old kernels to keep? Also, since the boot partition is normally quite small, can the preinstall script check disk space? Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: x Additional info:
Anything involving package removal pretty much has to be done in the updating tools (ie, yum/up2date). Theres just too many things that can go wrong if the %post of the kernel started removing other RPMs.
So here's a neat trick: http://devel.linux.duke.edu/cgi-bin/viewcvs.cgi/yum-utils/package-cleanup.py?rev=1.2&view=auto This is one of a set of scripts that will be coming out as 'yum-utils' They should let you easily clean up old kernels w/o risk to your system, well, in theory. :)
Cool :) One thing I noticed (I only skimmed the code).. If a user manually chooses a non-smp kernel from the grub boot menu, but the default kernel line in /etc/sysconfig/kernel is kernel-smp, then the "running kernel check" won't handle accidentally removing the default kernel.
Yah - okay - so refile the bug or post to yum-devel about that subject, please. it's not really easy to track for the package-cleanup developers, here.
Should be closed now as package-cleanup is part of yum-utils which is Fedora Extras repository enabled by default in FC4 and above
Agreed, closing. thanks
(In reply to comment #4) > Yah - okay - so refile the bug or post to yum-devel about that subject, please. > > it's not really easy to track for the package-cleanup developers, here. Where should I refile the bug? There is no yum-utils package in bugzilla for either Fedora Extras or Fedora.
I've requested the components be created. they will be made soon.