schroot.conf (5)
NAME
schroot.conf - chroot definition file for schrootDESCRIPTION
BI]schroot.conf is a plain UTF-8 text file, describing the chroots available for use with schroot.Comments are introduced following a [oq]CR][sh][cq] ([lq]hash[rq]) character at the beginning of a line, or following any other text. All text right of the [oq]CR][sh][cq] is treated as a comment.
The configuration format is an INI-style format, split into groups of key-value pairs separated by section names in square brackets.
General options
A chroot is defined as a group of key-value pairs, which is started by a name in square brackets on a line by itself. The file may contain multiple groups which therefore define multiple chroots.A chroot definition is started by the name of the chroot in square brackets. For example,
- CR][lB]sid[rB]
The name is subject to certain naming restrictions. For further details, see the section [lq]Chroot Names[rq] below.
This is then followed by several key-value pairs, one per line:
- CBI]type=CI]type
- The type of the chroot. Valid types are [oq]plain[cq], [oq]directory[cq], [oq]file[cq], [oq]loopback[cq], [oq]block-device[cq], [oq]btrfs-snapshot[cq] and [oq]lvm-snapshot[cq]. If empty or omitted, the default type is [oq]plain[cq]. Note that [oq]plain[cq] chroots do not run setup scripts and mount filesystems; [oq]directory[cq] is recommended for normal use (see [lq]Plain and directory chroots[rq], below).
- CBI]description=CI]description
- A short description of the chroot. This may be localised for different languages; see the section [lq]Localisation[rq] below.
- CBI]priority=CI]number
- Set the priority of a chroot. CI]number is a positive integer indicating whether a distribution is older than another. For example, [lq]oldstable[rq] and [lq]oldstable-security[rq] might be [oq]0[cq], while [lq]stable[rq] and [lq]stable-security[rq] are [oq]1[cq], [lq]testing[rq] is [oq]2[cq] and [lq]unstable[rq] is [oq]3[cq]. The values are not important, but the difference between them is. This option is deprecated and no longer used by schroot, but is still permitted to be used; it will be obsoleted and removed in a future release.
- CBI]message-verbosity=CI]verbosity
- Set the verbosity of messages printed by schroot when setting up, running commands and cleaning up the chroot. Valid settings are [oq]quiet[cq] (suppress most messages), [oq]normal[cq] (the default) and [oq]verbose[cq] (show all messages). This setting is overridden by the options --quiet and --verbose.
- CBI]users=CI]user1,user2,...
- A comma-separated list of users which are allowed access to the chroot. If empty or omitted, no users will be allowed access (unless a group they belong to is also specified in CI]groups).
- CBI]groups=CI]group1,group2,...
- A comma-separated list of groups which are allowed access to the chroot. If empty or omitted, no groups of users will be allowed access.
- CBI]root-users=CI]user1,user2,...
- A comma-separated list of users which are allowed password-less root access to the chroot. If empty or omitted, no users will be allowed root access without a password (but if a user or a group they belong to is in CI]users or CI]groups, respectively, they may gain access with a password). See the section [lq]Security[rq] below.
- CBI]root-groups=CI]group1,group2,...
- A comma-separated list of groups which are allowed password-less root access to the chroot. If empty or omitted, no users will be allowed root access without a password (but if a user or a group they belong to is in CI]users or CI]groups, respectively, they may gain access with a password). See the section [lq]Security[rq] below.
- CBI]aliases=CI]alias1,alias2,...
- A comma-separated list of aliases (alternate names) for this chroot. For example, a chroot named [lq]sid[rq] might have an [oq]unstable[cq] alias for convenience. Aliases are subject to the same naming restrictions as the chroot name itself.
- CBI]profile=CI]directory
- CBI]script-config=CI]filename
- The behaviour of the chroot setup scripts may be customised on a per-chroot basis by setting a specific configuration profile. The directory is relative to SCHROOT_SYSCONF_DIR]. The default is [oq]default[cq]. The files in this directory are sourced by the setup scripts, and so their behaviour may be customised by selecting the appropriate profile. Alternatives are [oq]minimal[cq] (minimal configuration), [oq]desktop[cq] (for running desktop applications in the chroot, making more functionality from the host system available in the chroot) and [oq]sbuild[cq] (for using the chroot for Debian package building). Other packages may provide additional profiles. The default values of the keys CI]setup.config, CI]setup.copyfiles, CI]setup.fstab and CI]setup.nssdatabases are set based upon the CI]profile setting.
- Note that the CI]profile key replaces the older CI]script-config key. The CI]script-config key is exactly the same as CI]profile, but has [lq]/config[rq] appended to it. The default filename is [oq]default/config[cq]. Either of these keys may be used. If both are present, then CI]script-config will take precedence (CI]profile will be unset). CI]script-config is deprecated and will be removed in a future release. Note that CI]profile is equivalent to CI]script-config if the file sourced by CI]script-config only contains the standard variables provided by schroot; if any additional variables or shell script fragments have been added, please also set CI]setup.config, which will continue to allow this file to be sourced. It is recommended to replace the use of the sourced file with additional keys in schroot.conf where possible, but it will continue to be possible to source an additional configuration file using CI]setup.config.
- Desktop users should note that the fstab file desktop/fstab will need editing if you use gdm3; please see the comments in this file for further instructions. The CI]preserve-environment key should also be set to [oq]true[cq] so that the environment is preserved inside the chroot.
- If none of the configuration profiles provided above meet your needs, then they may be edited to further customise them, and/or copied and used as a template for entirely new profiles.
- Note that the different profiles have different security implications; see the section [lq]Security[rq] below for further details.
- CBI]setup.config=CI]filename
- This key specifies a file which the setup scripts will source when they are run. This defaults to the same value as set by CI]script-config. The file is a Bourne shell script, and in consequence may contain any valid shell code, in addition to simple variable assignments. This will, for example, allow behaviour to be customised according to the specific chroot type or name. Note that the script will be sourced once for each and every script invocation, and must be idempotent.
- All the default settings in this file are now settable using configuration keys in schroot.conf, as detailed below. Existing configuration should be modified to use these keys in place of this file. See schroot-script-config(5) for further details. This type of setup script configuration file is no longer provided as part of the standard profiles, but will continue to be sourced if present and this key is set.
- CBI]setup.copyfiles=CI]filename
- A file containing a list of files to copy into the chroot (one file per line). The file will have the same absolute location inside the chroot.
- CBI]setup.fstab=CI]filename
- The filesystem table file to be used to mount filesystems within the chroot. The format of this file is the same as for /etc/fstab, documented in fstab(5). The only difference is that the mountpoint path fs_dir is relative to the chroot, rather than the root. Also note that mountpoints are canonicalised on the host, which will ensure that absolute symlinks point inside the chroot, but complex paths containing multiple symlinks may be resolved incorrectly; it is inadvisable to use nested symlinks as mountpoints.
- CBI]setup.nssdatabases=CI]filename
- A file listing the system databases to copy into the chroot. The default databases are [oq]passwd[cq], [oq]shadow[cq], [oq]group[cq] and [oq]gshadow[cq]. Other potential databases which could be added include [oq]services[cq], [oq]protocols[cq], [oq]networks[cq], and [oq]hosts[cq]. The databases are copied using getent(1) so all database sources listed in /etc/nsswitch.conf will be used for each database.
- CBI]setup.services=CI]service1,service2,...
- A comma-separated list of services to run in the chroot. These will be started when the session is started, and stopped when the session is ended.
- CBI]command-prefix=CI]command,option1,option2,...
- A comma-separated list of a command and the options for the command. This command and its options will be prefixed to all commands run inside the chroot. This is useful for adding commands such as nice, ionice or eatmydata for all commands run inside the chroot. nice and ionice will affect CPU and I/O scheduling. eatmydata ingores filesystem fsync operations, and is useful for throwaway snapshot chroots where you don't care about dataloss, but do care about high speed.
- CBI]personality=CI]persona
- Set the personality (process execution domain) to use. This option is useful when using a 32-bit chroot on 64-bit system, for example. Valid options on Linux are [oq]bsd[cq], [oq]hpux[cq], [oq]irix32[cq], [oq]irix64[cq], [oq]irixn32[cq], [oq]iscr4[cq], [oq]linux[cq], [oq]linux32[cq], [oq]linux_32bit[cq], [oq]osf4[cq], [oq]osr5[cq], [oq]riscos[cq], [oq]scorvr3[cq], [oq]solaris[cq], [oq]sunos[cq], [oq]svr4[cq], [oq]uw7[cq], [oq]wysev386[cq], and [oq]xenix[cq]. The default value is [oq]linux[cq]. There is also the special option [oq]undefined[cq] (personality not set). For a 32-bit chroot on a 64-bit system, [oq]linux32[cq] is the option required. The only valid option for non-Linux systems is [oq]undefined[cq]. The default value for non-Linux systems is [oq]undefined[cq].
- CBI]preserve-environment=CI]true|CI]false
- By default, the environment will not be preserved inside the chroot, instead a minimal environment will be used. Set to CI]true to always preserve the environment. This is useful for example when running X applications inside the chroot, which need the environment to function correctly. The environment may also be preserved using the --preserve-environment option.
- CBI]shell=CI]shell
- When running a login shell a number of potential shells will be considered, in this order: the command in the SHELL environment variable (if --preserve-environment is used, or CI]preserve-environment is enabled), the user's shell in the [oq]passwd[cq] database, /bin/bash and finally /bin/sh. This setting overrides this list, and will use the shell specified. It may be overridden using the --shell option.
- CBI]environment-filter=CI]regex
- The environment to be set in the chroot will be filtered in order to remove environment variables which may pose a security risk. Any environment variable matching the specified POSIX extended regular expression will be removed prior to executing any command in the chroot.
- Potentially dangerous environment variables are removed for safety by default using the following regular expression: [lq]CR]^(BASH_ENV:|CDPATH:|ENV:|HOSTALIASES:|IFS:|KRB5_CONFIG:|KRBCONFDIR:|KRBTKFILE:|KRB_CONF:|LD_.*:|LOCALDOMAIN:|NLSPATH:|PATH_LOCALE:|RES_OPTIONS:|TERMINFO:|TERMINFO_DIRS:|TERMPATH)$[rq].
Plain and directory chroots
Chroots of type [oq]plain[cq] or [oq]directory[cq] are directories accessible in the filesystem. The two types are equivalent except for the fact that directory chroots run setup scripts, whereas plain chroots do not. In consequence, filesystems such as /proc are not mounted in plain chroots; it is the responsibility of the system administrator to configure such chroots by hand, whereas directory chroots are automatically configured. Additionally, directory chroots implement the filesystem union chroot options (see [lq]Filesystem Union chroot options[rq], below).These chroot types have an additional (mandatory) configuration option:
- CBI]directory=CI]directory
- The directory containing the chroot environment. This is where the root will be changed to when executing a login shell or a command. The directory must exist and have read and execute permissions to allow users access to it. Note that on Linux systems it will be bind-mounted elsewhere for use as a chroot; the directory for [oq]plain[cq] chroots is mounted with the --rbind option to mount(8), while for [oq]directory[cq] chroots --bind is used instead so that sub-mounts are not preserved (they should be set in the fstab file just like in /etc/fstab on the host).
File chroots
Chroots of type [oq]file[cq] are files on the current filesystem containing an archive of the chroot files. They implement the source chroot options (see [lq]Source chroot options[rq], below). Note that a corresponding source chroot (of type [oq]file[cq]) will be created for each chroot of this type; this is for convenient access to the source archive, e.g. for the purpose of updating. These additional options are also implemented:- CBI]file=CI]filename
- The file containing the archived chroot environment (mandatory). This must be a tar (tape archive), optionally compressed with gzip, bzip2, xz, lzop or lz4. The file extensions used to determine the type are are .tar, .tar.gz, .tar.bz2, .tar.xz, .tar.lzop, .tar.lz4, .tgz, .tbz, .txz, .tzo and .tlz4. This file must be owned by the root user, and not be writable by other. Note that zip archives are no longer supported; zip was not able to archive named pipes and device nodes, so was not suitable for archiving chroots.
- CBI]location=CI]path
- This is the path to the chroot inside the archive. For example, if the archive contains a chroot in /squeeze, you would specify [lq]/squeeze[rq] here. If the chroot is the only thing in the archive, i.e. / is the root filesystem for the chroot, this option should be left blank, or omitted entirely.
Loopback chroots
Chroots of type [oq]loopback[cq] are a filesystem available as a file on disk, accessed via a loopback mount. The file will be loopback mounted and unmounted on demand. Loopback chroots implement the mountable chroot and filesystem union chroot options (see [lq]Mountable chroot options[rq] and [lq]Filesystem Union chroot options[rq], below), plus an additional option:- CBI]file=CI]filename
- This is the filename of the file containing the filesystem, including the absolute path. For example [lq]/srv/chroot/sid[rq].
Block device chroots
Chroots of type [oq]block-device[cq] are a filesystem available on an unmounted block device. The device will be mounted and unmounted on demand. Block device chroots implement the mountable chroot and filesystem union chroot options (see [lq]Mountable chroot options[rq] and [lq]Filesystem Union chroot options[rq], below), plus an additional option:- CBI]device=CI]device
- This is the device name of the block device, including the absolute path. For example, [lq]/dev/sda5[rq].
Btrfs snapshot chroots
Chroots of type [oq]btrfs-snapshot[cq] are a Btrfs snapshot created from an existing Btrfs subvolume on a mounted Btrfs filesystem. A snapshot will be created from this source subvolume on demand at the start of a session, and then the snapshot will be mounted. At the end of the session, the snapshot will be unmounted and deleted. This chroot type implements the source chroot options (see [lq]Source chroot options[rq], below). Note that a corresponding source chroot (of type [oq]directory[cq]) will be created for each chroot of this type; this is for convenient access to the source volume. These additional options are also implemented:- CBI]btrfs-source-subvolume=CI]directory
- The directory containing the source subvolume.
- CBI]btrfs-snapshot-directory=CI]directory
- The directory in which to store the snapshots of the above source subvolume.
LVM snapshot chroots
Chroots of type [oq]lvm-snapshot[cq] are a filesystem available on an LVM logical volume (LV). A snapshot LV will be created from this LV on demand, and then the snapshot will be mounted. At the end of the session, the snapshot LV will be unmounted and removed.LVM snapshot chroots implement the source chroot options (see [lq]Source chroot options[rq], below), and all the options for [oq]block-device[cq]. Note that a corresponding source chroot (of type [oq]block-device[cq]) will be created for each chroot of this type; this is for convenient access to the source device. This additional option is also implemented:
- CBI]lvm-snapshot-options=CI]snapshot_options
- Snapshot options. These are additional options to pass to lvcreate(8). For example, [lq]-L 2g[rq] to create a snapshot 2 GiB in size. Note: the LV name (-n), the snapshot option (-s) and the original LV path may not be specfied here; they are set automatically by schroot.
Custom chroots
Chroots of type [oq]custom[cq] are a special type of chroot, used for implementing new types of chroot not supported by any of the above chroot types. This may be useful for implementing and testing a new chroot type without needing to write any C++ code. However, you will need to write your own setup script to do the setup work, since by itself this chroot type does very little. You will also need to add custom keys to your chroot definition for use in the setup script; unlike the configuration for the above chroot types, no validation of the options will take place unless you do it yourself in your custom setup script. These additional options are also implemented:- CBI]custom-session-cloneable=CI]true|CI]false
- Set whether or not sessions may be cloned using this chroot (enabled by default).
- CBI]custom-session-purgeable=CI]true|CI]false
- Set whether or not sessions may be cloned using this chroot (disabled by default).
- CBI]custom-source-cloneable=CI]true|CI]false
- Set whether or not source chroots may be cloned using this chroot (disabled by default).
Source chroot options
The [oq]btrfs-snapshot[cq], [oq]file[cq] and [oq]lvm-snapshot[cq] chroot types implement source chroots. Additionally, chroot types with union support enabled implement source chroots (see [lq]Filesystem Union chroot options[rq], below). These are chroots which automatically create a copy of themselves before use, and are usually session managed. These chroots additionally provide an extra chroot in the source: namespace, to allow convenient access to the original (non-snapshotted) data, and to aid in chroot maintenance. I.e. for a chroot named wheezy (chroot:wheezy), a corresponding source:wheezy chroot will be created. For compatibility with older versions of schroot which did not support namespaces, a chroot with a -source suffix appended to the chroot name will be created in addition (i.e. wheezy-source using the above example). Note that these compatibility names will be removed in schroot 1.5.0, so the use of the source: namespace is preferred over the use of the -source suffix form. See schroot(1) for further details.These chroots provide the following additional options:
- CBI]source-clone=CI]true|CI]false
- Set whether the source chroot should be automatically cloned (created) for this chroot. The default is CI]true to automatically clone, but if desired may be disabled by setting to CI]false. If disabled, the source chroot will be inaccessible.
- CBI]source-users=CI]user1,user2,...
- A comma-separated list of users which are allowed access to the source chroot. If empty or omitted, no users will be allowed access. This will become the CI]users option in the source chroot.
- CBI]source-groups=CI]group1,group2,...
- A comma-separated list of groups which are allowed access to the source chroot. If empty or omitted, no users will be allowed access. This will become the CI]groups option in the source chroot.
- CBI]source-root-users=CI]user1,user2,...
- A comma-separated list of users which are allowed password-less root access to the source chroot. If empty or omitted, no users will be allowed root access without a password (but if a user is in CI]users, they may gain access with a password). This will become the CI]root-users option in the source chroot. See the section [lq]Security[rq] below.
- CBI]source-root-groups=CI]group1,group2,...
- A comma-separated list of groups which are allowed password-less root access to the source chroot. If empty or omitted, no users will be allowed root access without a password (but if a user's group is in CI]groups, they may gain access with a password). This will become the CI]root-groups option in the source chroot. See the section [lq]Security[rq] below.
Mountable chroot options
The [oq]block-device[cq], [oq]loopback[cq] and [oq]lvm-snapshot[cq] chroot types implement device mounting. These are chroots which require the mounting of a device in order to access the chroot. These chroots provide the following additional options:- CBI]mount-options=CI]options
- Mount options for the block device. These are additional options to pass to mount(8). For example, [lq]-o atime,sync,user_xattr[rq].
- CBI]location=CI]path
- This is the path to the chroot inside the filesystem on the device. For example, if the filesystem contains a chroot in /chroot/sid, you would specify [lq]/chroot/sid[rq] here. If the chroot is the only thing on the filesystem, i.e. / is the root filesystem for the chroot, this option should be left blank, or omitted entirely.
Filesystem Union chroot options
The [oq]block-device[cq], [oq]directory[cq] and [oq]loopback[cq] chroot types allow for the creation of a session using filesystem unions to overlay the original filesystem with a separate writable directory. The original filesystem is read-only, with any modifications made to the filesystem made in the overlying writable directory, leaving the original filesystem unchanged. A union permits multiple sessions to access and make changes to a single chroot simultaneously, while keeping the changes private to each session. To enable this feature, set CI]union-type to any supported value. If enabled, the chroot will also be a source chroot, which will provide additional options (see [lq]Source chroot options[rq], above). All entries are optional.- CBI]union-type=CI]type
- Set the union filesystem type. Currently supported filesystems are [oq]aufs[cq], [oq]overlayfs[cq], [oq]overlay[cq] (as of Linux 4.0+) and [oq]unionfs[cq]. The default is [oq]none[cq], which disables this feature.
- CBI]union-mount-options=CI]options
- Union filesystem mount options (branch configuration), used for mounting the union filesystem specified with union-type. This replaces the complete [lq]-o[rq] string for mount and allows for the creation of complex filesystem unions. Note that [oq]aufs[cq], [oq]overlayfs[cq] and [oq]unionfs[cq] each have different supported mount options. Note: One can use the variables [lq]${CHROOT_UNION_OVERLAY_DIRECTORY}[rq] and [lq]${CHROOT_UNION_UNDERLAY_DIRECTORY}[rq] to refer to the writable overlay session directory and read-only underlying directory which are to form the union. See schroot-setup(5) for a complete variable list.
- CBI]union-overlay-directoryCI]=directory
- Specify the directory where the writeable overlay session directories will be created. The default is [oq]SCHROOT_OVERLAY_DIR][cq].
- CBI]union-underlay-directoryCI]=directory
- Specify the directory where the read-only underlying directories will be created. The default is [oq]SCHROOT_UNDERLAY_DIR][cq].
Customisation
In addition to the configuration keys listed above, it is possible to add custom keys. These keys will be used to add additional environment variables to the setup script environment when setup scripts are run. The only restriction is that the key name consists only of alphanumeric characters and hyphens, begins with an alphabet character and contains at least one period. That is to say, that it matches the extended regular expression [lq]^([a-z][a-z0-9]*\.)+[a-z][a-z0-9-]*$[rq].
For example:
- debian.apt-update=true debian.distribution=unstable
would set the following environment:
- DEBIAN_APT_UPDATE=true DEBIAN_DISTRIBUTION=unstable
Note that it is an error to use different key names which would set the same environment variable by mixing periods and hyphens.
Custom configuration keys may also be modified at runtime using the --option option. However, for security, only selected keys may be modified. These keys are specified using the following options:
- CBI]user-modifiable-keys=CI]key1,key2,..
- Set the keys which users may modify using --option.
- CBI]root-modifiable-keys=CI]key1,key2,.. Set the keys which the
- root user may modify using --option. Note that the root user may use the keys specified in CI]user-modifiable-keys in addition to those specified here.
Localisation
Some keys may be localised in multiple languages. This is achieved by adding the locale name in square brackets after the key name. For example:
- description[en_GB]=CI]British English translation
This will localise the CI]description key for the en_GB locale.
- description[fr]=CI]French translation
This will localise the CI]description key for all French locales.
CHROOT NAMES
A number of characters or words are not permitted in a chroot name, session name or configuration filename. The name may not contain a leading period ([oq].[cq]). The characters [oq]:[cq] (colon), [oq],[cq] (comma) and [oq]/[cq] (forward slash) are not permitted anywhere in the name. The name may also not contain a trailing tilde ([oq]~[cq]). The rationale for these restrictions is given below.- [oq].[cq]
- A leading period could be used to create a name with a relative path in it, in combination with [oq]/[cq], and this could allow overwriting of files on the host filesystem. Not allowing this character also means hidden files cannot be created. It also means some editor backups are automatically ignored. Periods are allowed anywhere else in the name.
- [oq]:[cq]
- A colon is used as a namespace delimiter, and so is not permitted as part of a chroot or session name. LVM snapshot names may also not contain this character due to a naming restriction by lvcreate(8).
- [oq]/[cq]
- Names containing this character are not valid filenames. A forward slash would potentially allow creation of files in subdirectories.
- [oq],[cq]
- Commas are used to separate items in lists. Aliases are separated by commas and hence can't contain commas in their name.
- [oq]~[cq]
- Filenames containing trailing tildes are used for editor backup files, which are ignored. Tildes are allowed anywhere else in the name.
- [oq]dpkg-old[cq]
- [oq]dpkg-dist[cq] [oq]dpkg-new[cq] [oq]dpkg-tmp[cq] These names may not appear at the end of a name. These are saved copies of conffiles used by the dpkg package manager, and will be ignored.
SECURITY
Untrusted users
Note that giving untrusted users root access to chroots is a serious security risk! Although the untrusted user will only have root access to files inside the chroot, in practice there are many obvious ways of breaking out of the chroot and of disrupting services on the host system. As always, this boils down to trust.Do not give chroot root access to users you would not trust with root access to the host system.
Profiles
Depending upon which profile you have configured with the CI]script-config option, different filesystems will be mounted inside the chroot, and different files will be copied into the chroot from the host. Some profiles will mount the host's /dev, while others will not. Some profiles also bind mount additional parts of the host filesystem in order to allow use of certain features, including user's home directories and specific parts of /var. Check the profile's fstab file to be certain of what will be mounted, and the other profile files to see which files and system databases will be copied into the chroot. Choose a different profile or edit the files to further restrict what is made available inside the chroot.There is a tradeoff between security (keeping the chroot as minimal as possible) and usability (which sometimes requires access to parts of the host filesystem). The different profiles make different tradeoffs, and it is important that you assess which meets the security/usability tradeoff you require.
EXAMPLE
# Sample configuration[sid] type=plain description=Debian unstable description[fr_FR]=Debian instable directory=/srv/chroot/sid priority=3 users=jim groups=sbuild root-users=rleigh aliases=unstable,default
[etch] type=block-device description=Debian testing (32-bit) priority=2 groups=users #groups=sbuild-security aliases=testing device=/dev/hda_vg/etch_chroot mount-options=-o atime personality=linux32
[sid-file] type=file description=Debian sid file-based chroot priority=3 groups=sbuild file=/srv/chroots/sid.tar.gz
[sid-snapshot] type=lvm-snapshot description=Debian unstable LVM snapshot priority=3 groups=sbuild users=rleigh source-root-users=rleigh source-root-groups=admin device=/dev/hda_vg/sid_chroot mount-options=-o atime,sync,user_xattr lvm-snapshot-options=--size 2G
FILES
Chroot definitions
- BI]SCHROOT_CONF]
- The system-wide chroot definition file. This file must be owned by the root user, and not be writable by other.
- BI]SCHROOT_CONF_CHROOT_D]
- Additional chroot definitions may be placed in files under this directory. They are treated in exactly that same manner as SCHROOT_CONF]. Each file may contain one or more chroot definitions.
Setup script configuration
The directory BI]SCHROOT_SYSCONF_DIR]/default contains the default settings used by setup scripts.- BI]config
- Main configuration file read by setup scripts. The format of this file is described in schroot-script-config(5). This is the default value for the CI]script-config key. Note that this was formerly named SCHROOT_SYSCONF_DIR]/script-defaults. The following files are referenced by default:
- BI]copyfiles
- A list of files to copy into the chroot from the host system. Note that this was formerly named SCHROOT_SYSCONF_DIR]/copyfiles-defaults.
- BI]fstab
- A file in the format decribed in fstab(5), used to mount filesystems inside the chroot. The mount location is relative to the root of the chroot. Note that this was formerly named SCHROOT_SYSCONF_DIR]/mount-defaults.
- BI]nssdatabases
- System databases (as described in /etc/nsswitch.conf on GNU/Linux systems) to copy into the chroot from the host. Note that this was formerly named SCHROOT_SYSCONF_DIR]/nssdatabases-defaults.
AUTHORS
Roger Leigh.COPYRIGHT
Copyright © 2005-2012 Roger Leigh CR]<rleigh@debian.org>PROGRAM] is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.