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:
parent
8af8fcd361
commit
7cfabda7d7
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue