~ubuntu-branches/ubuntu/wily/debianutils/wily

« back to all changes in this revision

Viewing changes to ischroot.1

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2011-05-18 15:04:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110518150415-3phqeaqa13lwox4l
Tags: 4
ischroot utility by Aurelien Jarno to detect chrootedness.
closes: #627205.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" -*- nroff -*-
 
2
.TH ISCHROOT 1 "17 May 2011" "Debian"
 
3
.SH NAME
 
4
ischroot \- detect if running in a chroot
 
5
.SH SYNOPSIS
 
6
.B ischroot
 
7
[\-\-default\-false] [\-\-default\-true] [\-\-help] [\-\-version]
 
8
.SH DESCRIPTION
 
9
.PP
 
10
.B ischroot
 
11
detects if it is currently running in a chroot. The exit status is:
 
12
.TP
 
13
0
 
14
if currently running in a chroot
 
15
.TP
 
16
1
 
17
if currently not running in a chroot
 
18
.TP
 
19
2
 
20
if the detection is not possible (On GNU/Linux in happens if the script
 
21
is not run as root).
 
22
.SH OPTIONS
 
23
.TP
 
24
.B "-f, --default-false "
 
25
Exit with status 1 if the detection is not possible.
 
26
.TP
 
27
.B "-t, --default-true "
 
28
Exit with status 0 if the detection is not possible.
 
29
.TP
 
30
.B "--help"
 
31
Print a usage message on standard output and exit successfully.
 
32
.TP
 
33
.B "--version"
 
34
Print version information on standard output and exit successfully.
 
35
.SH BUGS
 
36
On GNU/Linux, chroot detection is not possible as root. This works correctly
 
37
on GNU/Hurd and GNU/kFreeBSD.