[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian-User] Removing /lib/modules/<linux-image-version> after linux-image removal



On Feb 3, 2008 9:12 PM, Javier Vasquez <jevv.cr@gmail.com> wrote:
> Hi,
>
> I have the following /etc/kernel-img.conf:
>
> do_symlinks = no
> do_bootloader = no
> do_bootfloppy = no
> do_initrd = yes
> postinst_hook = /usr/sbin/update-grub
> postrm_hook = /usr/sbin/update-grub
> #ramdisk = /usr/sbin/mkinitrd.yaird
>
> So when removing a particular kernel image, I get the grub menu update
> automatically.  However I was wondering if there's already a script
> that instead could have called update-grub, and after could have
> removed /lib/modules/<corresponding_kernel>.
>
> <snip>

Shouldn't the directory be removed for you by the package manager
automatically once the appropriate packages are gone?  Check with dpkg
-S /lib/modules/<whatever directory>.  It should tell you what
packages are keeping that directory back for you.

-- 
Kushal


Reply to: