prerm: Print an error message when aborting removal of the running kernel (Closes: #601962)

svn path=/dists/sid/linux-2.6/; revision=18424
This commit is contained in:
Ben Hutchings 2011-12-28 00:29:32 +00:00
parent 8af8fcd361
commit 7cfabda7d7
2 changed files with 5 additions and 0 deletions

4
debian/changelog vendored
View File

@ -3,6 +3,10 @@ linux-2.6 (3.1.6-2) UNRELEASED; urgency=low
[ Ben Hutchings ]
* snapshot: Implement compat_ioctl (Closes: #502816)
[ Jonathan Nieder ]
* prerm: Print an error message when aborting removal of the running
kernel (Closes: #601962)
-- Ben Hutchings <ben@decadent.org.uk> Tue, 27 Dec 2011 20:54:23 +0100
linux-2.6 (3.1.6-1) unstable; urgency=low

View File

@ -109,6 +109,7 @@ if ($running eq $version) {
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 {