a2d662d600
The XML root element of Docbook XML files should match the following format: <ELEMENT xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="THE_XML_ID_OF_THE_ELEMENT"> Change-Id: I1e0804e2c5021bd78b77483f3156c5b069453555
29 lines
1.5 KiB
XML
29 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<section xmlns="http://docbook.org/ns/docbook"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
version="5.0"
|
|
xml:id="debconf-preseeding">
|
|
<title>Pre-seed debconf prompts</title>
|
|
<para>You can pre-seed all <systemitem
|
|
class="library">debconf</systemitem> prompts. To pre-seed means
|
|
to store responses in the <package>debconf</package> database so
|
|
that <package>debconf</package> does not prompt the user for
|
|
responses. Pre-seeding enables a hands-free installation for
|
|
users. The package maintainer creates scripts that automatically
|
|
configure the services.</para>
|
|
<para>The following example shows how to pre-seed an automated MySQL
|
|
Server installation:</para>
|
|
<programlisting language="bash">MYSQL_PASSWORD=<replaceable>MYSQL_PASSWORD</replaceable>
|
|
echo "mysql-server-5.5 mysql-server/root_password password ${<replaceable>MYSQL_PASSWORD</replaceable>}
|
|
mysql-server-5.5 mysql-server/root_password seen true
|
|
mysql-server-5.5 mysql-server/root_password_again password ${<replaceable>MYSQL_PASSWORD</replaceable>}
|
|
mysql-server-5.5 mysql-server/root_password_again seen true
|
|
" | debconf-set-selections
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes mysql-server</programlisting>
|
|
<para>The <code>seen true</code> option tells
|
|
<package>debconf</package> that a specified screen was already
|
|
seen by the user so do not show it again. This option is useful
|
|
for upgrades.</para>
|
|
</section>
|