Clean out old kernels

Derek Broughton news at pointerstop.ca
Sun Oct 7 14:30:32 UTC 2007


Thilo Six wrote:

> Derek Broughton wrote the following on 05.10.2007 14:28
> 
> <<-snip->>
> 
>>> You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub
>>> instead!
>>>
>> Still?  update-grub moved from /sbin to /usr/sbin, and a wrapper was
>> placed
>> in /sbin to invoke the new version but send this message.  New versions
>> of the kernel package should have the links right though the .postrm
>> script for old versions might not.
> 
> For that i edit /etc/kernel-img.conf from:
> 
> postinst_hook = update-grub
> postrm_hook   = update-grub
> 
> to:
> postinst_hook = /usr/sbin/update-grub
> postrm_hook   = /usr/sbin/update-grub
> 
> The warning then dissapears.
> 
Ah.  Clever - I wonder though why I _have_ this file (and a quick look at
one of the linux-image-* .postinst scripts shows it references it) but
don't have the package that provides it (kernel-package)...  It would seem
it really belongs somewhere else.
-- 
derek





More information about the ubuntu-users mailing list