| 196 |
Another readable file <filename>/var/cache/debconf/questions.dat</filename> |
Another readable file <filename>/var/cache/debconf/questions.dat</filename> |
| 197 |
is used to store the values for variables and the answers given to questions. |
is used to store the values for variables and the answers given to questions. |
| 198 |
A question always refers to the template used to ask it. For obvious |
A question always refers to the template used to ask it. For obvious |
| 199 |
security reasons the values for templates of type <quote>password</quote> |
security reasons the values for questions of type <quote>password</quote> |
| 200 |
are stored in a separate, non-readable file in the same directory. |
are stored in a separate, non-readable file in the same directory. |
| 201 |
|
|
| 202 |
</para> |
</para> |
| 234 |
It is possible to use preseeding to change the default answer for a |
It is possible to use preseeding to change the default answer for a |
| 235 |
question, but still have the question asked. To do this the |
question, but still have the question asked. To do this the |
| 236 |
<firstterm>seen</firstterm> flag must be reset to <quote>false</quote> after |
<firstterm>seen</firstterm> flag must be reset to <quote>false</quote> after |
| 237 |
setting the value for a template. |
setting the value for a question. |
| 238 |
|
|
| 239 |
</para> |
</para> |
| 240 |
|
|
| 423 |
a line in a preconfiguration file is: |
a line in a preconfiguration file is: |
| 424 |
|
|
| 425 |
<informalexample><screen> |
<informalexample><screen> |
| 426 |
<owner> <template name> <template type> <value> |
<owner> <queston name> <question type> <value> |
| 427 |
</screen></informalexample> |
</screen></informalexample> |
| 428 |
|
|
| 429 |
</para><para> |
</para><para> |
| 440 |
<listitem><para> |
<listitem><para> |
| 441 |
A line can be split into multiple lines by appending a backslash |
A line can be split into multiple lines by appending a backslash |
| 442 |
(<quote><literal>\</literal></quote>) as the line continuation character. |
(<quote><literal>\</literal></quote>) as the line continuation character. |
| 443 |
A good place to split a line is after the template name; a bad place is |
A good place to split a line is after the question name; a bad place is |
| 444 |
between type and value. |
between type and value. |
| 445 |
</para></listitem> |
</para></listitem> |
| 446 |
<listitem><para> |
<listitem><para> |
| 447 |
Most templates need to be preseeded using the values valid in English and |
Most questions need to be preseeded using the values valid in English and |
| 448 |
not the translated values. However, there are some templates (for example |
not the translated values. However, there are some questions (for example |
| 449 |
in <classname>partman</classname> where the translated values need to be |
in <classname>partman</classname> where the translated values need to be |
| 450 |
used. |
used. |
| 451 |
</para></listitem> |
</para></listitem> |
| 452 |
<listitem><para> |
<listitem><para> |
| 453 |
Some templates take a code as value instead of the English text that is |
Some questions take a code as value instead of the English text that is |
| 454 |
shown during installation. |
shown during installation. |
| 455 |
</para></listitem> |
</para></listitem> |
| 456 |
</itemizedlist> |
</itemizedlist> |
| 498 |
|
|
| 499 |
<para> |
<para> |
| 500 |
|
|
| 501 |
To check possible values for templates, you can use <command>nano</command> |
To check possible values for questions, you can use <command>nano</command> |
| 502 |
to examine the files in <filename>/var/lib/cdebconf</filename> while an |
to examine the files in <filename>/var/lib/cdebconf</filename> while an |
| 503 |
installation is in progress. View <filename>templates.dat</filename> for |
installation is in progress. View <filename>templates.dat</filename> for |
| 504 |
the raw templates and <filename>questions.dat</filename> for the current |
the raw templates and <filename>questions.dat</filename> for the current |
| 707 |
|
|
| 708 |
<informalexample role="example"><screen> |
<informalexample role="example"><screen> |
| 709 |
# If the system has free space you can choose to only partition that space. |
# If the system has free space you can choose to only partition that space. |
| 710 |
# Note: this template must be preseeded with a localized (translated) value. |
# Note: this must be preseeded with a localized (translated) value. |
| 711 |
#d-i partman-auto/init_automatically_partition \ |
#d-i partman-auto/init_automatically_partition \ |
| 712 |
# select Use the largest continuous free space |
# select Use the largest continuous free space |
| 713 |
|
|
| 717 |
d-i partman-auto/disk string /dev/discs/disc0/disc |
d-i partman-auto/disk string /dev/discs/disc0/disc |
| 718 |
|
|
| 719 |
# You can choose from any of the predefined partitioning recipes. |
# You can choose from any of the predefined partitioning recipes. |
| 720 |
# Note: this template must be preseeded with a localized (translated) value. |
# Note: this must be preseeded with a localized (translated) value. |
| 721 |
d-i partman-auto/choose_recipe \ |
d-i partman-auto/choose_recipe \ |
| 722 |
select All files in one partition (recommended for new users) |
select All files in one partition (recommended for new users) |
| 723 |
#d-i partman-auto/choose_recipe \ |
#d-i partman-auto/choose_recipe \ |