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

Bug#524534: initramfs-tools: returns error when attempting to remove an already removed initrd



On Sat, 18 Apr 2009, Arthur Marsh wrote:

> Package: initramfs-tools
> Version: 0.93.2
> Severity: normal
> 
> 
> I was trying to remove a 2.6.27 kernel I had built from source and somehow the
> initrd was removed before initramfs-tools tried to remove it.
> 
> This resulted in a failure to remove the kernel from the packaging system.
> 
> See also bug #524499. The error message I was left with was:
> 
> >  > Cannot delete /boot/initrd.img-2.6.27, doesn't exist.
> >  > run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 1
> >  > dpkg: error processing linux-2.6.27 (--purge):
> >  >   subprocess post-removal script returned error exit status 1
> >  > Errors were encountered while processing:
> >  >   linux-2.6.27
> >  > E: Sub-process /usr/bin/dpkg returned an error code (1)
> > 
> >         So this is a problem with
> >  /etc/kernel/postrm.d/initramfs-tools 
> > 
> >  > I temporarily added "exit 0" to the start of
> >  > /etc/kernel/postrm.d/initramfs-tools to force the removal of
> >  > kernel-2.6.27.
> > 
> >         Right. We need to get the script in
> >  /etc/kernel/postrm.d/initramfs-tools  
> >  fixed. Any idea where it came from?
> > 

can you put an "set -x" on top of /etc/kernel/postrm.d/initramfs-tools
when trying to purge that one.

thanks

-- 
maks



Reply to: