1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4
<!ENTITY % commondata SYSTEM "../../entities/common.ent" > %commondata;
7
<title>Customising contents</title>
9
<para>This chapter discusses further customisation of the live system.</para>
12
<title>Includes</title>
14
<para>Using includes, it is possible to add (or replace) arbitrary files in your Debian Live image. &live-helper; provides three mechanisms for using them:</para>
23
These allow you to add or replace files to the chroot/Live filesystem. Please see <xref linkend="chroot-local-includes"/> for more information.
33
These allow you to add or replace files in the binary image. Please see <xref linkend="binary-local-includes"/> for more information.
43
These allow you to add or replace Debian specific files in the binary image, such as the templates and tools directories. Please see <xref linkend="binary-includes"/> for more information.
50
Please see <xref linkend="terms"/> for more information about the distinction between the "Live" and "binary" images.
53
<sect3 id="chroot-local-includes">
54
<title>Live/chroot local includes</title>
56
Chroot local includes can be used to add or replace files in the chroot/Live filesystem so that they are visible when the Live system is booted. Typical uses for them are to populate the skeleton user directory (<filename class="directory">/etc/skel</filename>) used by the live system to create the live user's home directory, or adding configuration files where additional processing is not required.
60
To include files, simply add them to your <filename class="directory">config/chroot_local-includes</filename> directory. This directory corresponds to the root directory (<filename class="directory">/</filename>) of the live system. For example, to add a file <filename>/var/www/index.html</filename> in the live system, use:
64
$ mkdir -p config/chroot_local-includes/var/www
65
$ cp /path/to/my/index.html config/chroot_local-includes/var/www
69
Your configuration will then have the following layout:
74
|-- chroot_local-includes
83
Chroot local includes are installed after package installation so that files installed by packages are overwritten.
87
<sect3 id="binary-local-includes">
88
<title>Binary local includes</title>
94
<sect3 id="binary-includes">
95
<title>Binary includes</title>
107
<para>Enabling hooks</para>
109
<sect3 id="chroot-local-hooks">
110
<title>Live/chroot local hooks</title>
114
<sect3 id="binary-local-hooks">
115
<title>Binary local hooks</title>
121
<sect2 id="debconf-preseed">
122
<title>Preseeding Debconf questions</title>
124
<para>Files in the <filename class="directory">config/chroot_local-preseed</filename> directory are considered to be debconf preseed files and are installed by &live-helper; using <filename>debconf-set-selections</filename>.</para>
126
<para>For more information about debconf, please see debconf(7) in the <command>debconf</command> package.</para>
129
<sect2 id="symlinks">
130
<title>Symlink conversion</title>
131
<para>FIXME. (This is probably in the wrong section)</para>