FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 10-31-2010, 03:17 PM
Lucas Nussbaum
 
Default Bug#601962: linux-image-2.6.32-5-amd64: removal fails in a clean chroot

severity 601962 important
thanks

On 31/10/10 at 15:58 +0100, Julien Cristau wrote:
> On Sun, Oct 31, 2010 at 12:46:55 +0100, Lucas Nussbaum wrote:
>
> > Removing linux-image-2.6.32-5-amd64 in a clean chroot fails:
> > # apt-get remove --purge linux-image-2.6.32-5-amd64
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > The following packages will be REMOVED:
> > linux-image-2.6.32-5-amd64*
> > 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
> > After this operation, 99.0 MB disk space will be freed.
> > Do you want to continue [Y/n]?
> > (Reading database ... 9662 files and directories currently installed.)
> > Removing linux-image-2.6.32-5-amd64 ...
> > dpkg: error processing linux-image-2.6.32-5-amd64 (--purge):
> > subprocess installed pre-removal script returned error exit status 1
> > configured to not write apport reports
> > Errors were encountered while processing:
> > linux-image-2.6.32-5-amd64
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
> >
> Any chance you can test that with set -x?

Not really, since it's perl

But I found out that the problem is that I get into the "$running eq
$version" test, but I use the debconf non-interactive frontend. So I
don't see the question about removing the running kernel image, but the
script exits with 1.

It would be nice to display an error message, like:
if ($answer =~ /^(y|t)/i) {
+ print STDERR "Aborting the removal of the running kernel image.
";
exit 1; #Operation not permitted
}
else {
print STDERR "Ok, proceeding with removing running kernel image.
";
}

- Lucas



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20101031161746.GA15184@xanadu.blop.info">http://lists.debian.org/20101031161746.GA15184@xanadu.blop.info
 
Old 12-24-2011, 10:21 AM
Jonathan Nieder
 
Default Bug#601962: linux-image-2.6.32-5-amd64: removal fails in a clean chroot

found 601962 linux-2.6/3.1.6-1
tags 601962 + patch
quit

Lucas Nussbaum wrote:

> But I found out that the problem is that I get into the "$running eq
> $version" test, but I use the debconf non-interactive frontend. So I
> don't see the question about removing the running kernel image, but the
> script exits with 1.
>
> It would be nice to display an error message, like:
> if ($answer =~ /^(y|t)/i) {
> + print STDERR "Aborting the removal of the running kernel image.
";
> exit 1; #Operation not permitted
> }
> else {
> print STDERR "Ok, proceeding with removing running kernel image.
";
> }

Yes, I agree. Patch follows.

Index: debian/changelog
================================================== =================
--- debian/changelog (révision 18419)
+++ debian/changelog (copie de travail)
@@ -1,3 +1,11 @@
+linux-2.6 (3.1.6-2) UNRELEASED; urgency=low
+
+ [ Jonathan Nieder ]
+ * prerm: Print an error message when aborting removal of the running
+ kernel (Closes: #601962)
+
+ -- Jonathan Nieder <jrnieder@gmail.com> Sat, 24 Dec 2011 05:17:47 -0600
+
linux-2.6 (3.1.6-1) unstable; urgency=low

* New upstream stable update:
Index: debian/templates/temp.image.plain/prerm
================================================== =================
--- debian/templates/temp.image.plain/prerm (révision 18419)
+++ debian/templates/temp.image.plain/prerm (copie de travail)
@@ -109,6 +109,7 @@
die "Error retreiving answer for $question: $answer" if $ret;

if ($answer =~ /^(y|t)/i) {
+ print STDERR "Aborting removal of running kernel image.
";
exit 1; #Operation not permitted
}
else {



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111224112106.GA24323@elie.Belkin">http://lists.debian.org/20111224112106.GA24323@elie.Belkin
 

Thread Tools




All times are GMT. The time now is 08:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org