On Sun, 03 Dec 2006 21:29:17 -0800
Daniel Burrows <[EMAIL PROTECTED]> wrote:

> On Sun, Dec 03, 2006 at 11:33:37PM +0100, Tim Dijkstra <[EMAIL PROTECTED]> 
> was heard to say:
> > On Sat, 02 Dec 2006 20:04:37 -0800
> > Daniel Burrows <[EMAIL PROTECTED]> wrote:

> > > 
> > >   It appears that the problem here is the call to update-initramfs.  If I
> > > force-remove initramfs-tools, I can remove uswsusp just fine.  Maybe it
> > > would be a good idea to ignore errors in the initramfs call on remove?  
> > > (or
> > > if not, print some visible indication of what went wrong ... this might be
> > > more of an initramfs bug, though)
> > 
> > Are you sure the failing of update-initramfs is related to uswsusp? In the 
> > postrm 
> > it runs update-initramfs to remove all traces of uswsusp from the 
> > initramfs. 
> > If dpkg did its job there shouldn't be a hook-script left from uswsusp, so
> > the run should be as if uswsusp wasn't their at all.
> > 
> > Could you please try to run update-initramfs -u in a terminal to see if it 
> > succeeds?
> 
>   Well, the problem is that while initramfs doesn't print any indication of
> failure, it terminates with exit code 1.  (probably this should also be an
> initramfs bug, but I haven't figured out yet just what's causing it to fail)

        update-initramfs -u -v

Will give you some more info.

> While you obviously don't want to continue installing uswsusp in this case,
> it seems wrong to me that I can't remove uswsusp either.  I can see an
> argument that failing is the right thing to do, though.

I agree that it is annoying you can't remove it easily, but I think
there is no sensible way to fix this. The removal of uswsusp is failing
because update-initramfs is failing. This means you are left with a
potentially unbootable system. You could argue that that is not uswsusp's
fault so it should continue to be removed, but that would be covering
up a problem.

But I think I'll add a message when update-initramfs fails, telling the
user it is update-initramfs' fault.

grts Tim

Attachment: signature.asc
Description: PGP signature

Reply via email to