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

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.\n";
>      exit 1; #Operation not permitted
>   }
>   else {
>      print STDERR "Ok, proceeding with removing running kernel image.\n";
>   }

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.\n";
     exit 1; #Operation not permitted
   }
   else {



Reply to: