Debian Codegraph @

man/linux-check-removal.1

raw
1 .TH LINUX-CHECK-REMOVAL 1 "6 June 2016"
2 .SH NAME
3 linux\-check\-removal \- check whether removal of a kernel is safe
4 .SH SYNOPSIS
5 .HP
6 .BI linux\-check\-removal \ KERNEL\-VER
7 .SH DESCRIPTION
8 \fBlinux\-check\-removal\fR is intended to be called from the prerm
9 maintainer scripts of Linux kernel packages.
10 .PP
11 The \fIKERNEL\-VER\fR argument must be the kernel version string as shown by
12 \fBuname \-r\fR and used in filenames, not the package version.
13 .PP
14 If the currently running kernel matches \fIKERNEL\-VER\fR,
15 \fBlinux\-check\-removal\fR normally prompts the user to confirm
16 this potentially dangerous action and fails if the user chooses to
17 abort. There are two exceptions to this behaviour:
18 .IP \(bu 2
19 If the current environment is a chroot or container, it is assumed
20 that the running kernel is independent of any installed kernel package
21 and the command always quietly succeeds
22 .IP \(bu 2
23 If debconf prompts are disabled, the command warns if removing the
24 running kernel but always succeeds
25
26 .SH ENVIRONMENT VARIABLES
27 .PD 0
28 .TP
29 .I DEBIAN_FRONTEND
30 Name of the preferred debconf front-end. If set to
31 \fInoninteractive\fR, debconf prompts are disabled and
32 \fBlinux\-check\-removal\fR always quietly succeeds.
33 .TP
34 .I DPKG_MAINTSCRIPT_PACKAGE
35 Name of the package to be removed, automatically set by dpkg.
36
37 .SH AUTHOR
38 \fBlinux\-check\-removal\fR and this manual page were written by Ben
39 Hutchings as part of the Debian \fBlinux\-base\fR package.