1SCHROOT-SCRIPT-CONFIG(5)         Debian sbuild        SCHROOT-SCRIPT-CONFIG(5)
2
3
4

NAME

6       schroot-script-config - schroot chroot setup script configuration
7

DESCRIPTION

9       schroot  uses  scripts  to set up and then clean up the chroot environ‐
10       ment.  These scripts may be customised using the script-config  key  in
11       /etc/schroot/schroot.conf.   This  key specifies a file which the setup
12       scripts will source when they are run.  The  file  is  a  Bourne  shell
13       script,  and  in consequence may contain any valid shell code, in addi‐
14       tion to simple variable assignments.  This will, for example, allow be‐
15       haviour to be customised according to the specific chroot type or name.
16
17       This file is deprecated, but is still used if present; it will be obso‐
18       leted and removed in a future release.  All the settings in  this  file
19       are  now settable using configuration keys in schroot.conf, as detailed
20       below.  Existing configuration should be modified to use these keys  in
21       place of this file.
22

ENVIRONMENT

24       The environment is the same as for all setup scripts, described in sch‐
25       root-setup(5).
26

VARIABLES

28       The following variables may be set to configure setup script behaviour.
29       Note  that  new variables may be added in future releases.  Third-party
30       extensions to schroot which add their own setup scripts may  add  addi‐
31       tional  variables  which are not documented here; consult the extension
32       documentation for further details.
33
34       SETUP_COPYFILES
35              A file containing a list of files to copy into the  chroot  (one
36              file  per  line).  The file will have the same absolute location
37              inside the  chroot.   Note  that  this  is  settable  using  the
38              setup.copyfiles key.
39
40       SETUP_FSTAB
41              The filesystem table file to be used to mount filesystems within
42              the chroot.  The  format  of  this  file  is  the  same  as  for
43              /etc/fstab, documented in fstab(5).  The only difference is that
44              the mountpoint path fs_dir is relative  to  the  chroot,  rather
45              than the root.  Note that this is settable using the setup.fstab
46              key.  Also note that mountpoints are canonicalised on the  host,
47              which  will  ensure  that absolute symlinks point inside the ch‐
48              root, but complex paths containing multiple symlinks may be  re‐
49              solved  incorrectly; it is advised to not use nested symlinks as
50              mountpoints.
51
52       SETUP_NSSDATABASES
53              A file listing the system databases to  copy  into  the  chroot.
54              The  default  databases  are  ‘passwd’, ‘shadow’, ‘group’, ‘ser‐
55              vices’, ‘protocols’, ‘networks’, and ‘hosts’.  ‘gshadow’ is  not
56              yet copied by default, due to not being supported by all but the
57              most recent version of the GNU C  library.   The  databases  are
58              copied  using  getent(1)  so  all  database  sources  listed  in
59              /etc/nsswitch.conf will be used for each  database.   Note  that
60              this is settable using the setup.nssdatabases key.
61

AUTHORS

63       Roger Leigh.
64
66       Copyright © 2005-2012  Roger Leigh <rleigh@debian.org>
67
68       schroot  is free software: you can redistribute it and/or modify it un‐
69       der the terms of the GNU General Public License  as  published  by  the
70       Free  Software Foundation, either version 3 of the License, or (at your
71       option) any later version.
72

SEE ALSO

74       sbuild(1), schroot(1), sh(1), schroot.conf(5), schroot-setup(5).
75
76
77
78Version 1.6.10                    05 May 2014         SCHROOT-SCRIPT-CONFIG(5)
Impressum