6abfd37708
Changing the XML IDs of several chapters in the installation guide for consistency, and to match the section title, which follows conventions. Minor subjective edits also included. Change-Id: Id33aa27ef2027ac13f129c3bae150492b4bbfa13 backport:none Implements: blueprint installation-guide-improvements Co-Authored-By: Matt Kassawara <mkassawara@gmail.com>
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-preseed-prompts">
|
|
<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>
|