/[d-i]/trunk/manual/en/appendix/preseed.xml
ViewVC logotype

Diff of /trunk/manual/en/appendix/preseed.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 33718 by fjp, Mon Nov 28 22:25:52 2005 UTC revision 33719 by joeyh, Tue Jan 3 18:17:58 2006 UTC
# Line 31  example preseed file from &urlset-exampl Line 31  example preseed file from &urlset-exampl
31   <title>Introduction</title>   <title>Introduction</title>
32  <para>  <para>
33    
34  Preseeding provides a way to set answers to questions without having to manually  Preseeding provides a way to set answers to questions asked during the
35  enter the answers while the installation is running. This makes it possible to  installation process, without having to manually enter the answers while
36  fully automate most types of installation and even offers some features not  the installation is running. This makes it possible to fully automate most
37  available during normal installations.  types of installation and even offers some features not available during
38    normal installations.
 </para><para>  
   
 Using preseeding it is possible to fill in answers to questions asked during  
 both the first stage of the installation (before the reboot into the new  
 system) and the second stage.  
39    
40  </para>  </para>
41    
# Line 225  See <xref linkend="preseed-shell"/> for Line 220  See <xref linkend="preseed-shell"/> for
220  </para></listitem>  </para></listitem>
221  <listitem><para>  <listitem><para>
222    <userinput>preseed/late_command</userinput>: is run just before the reboot    <userinput>preseed/late_command</userinput>: is run just before the reboot
223    at the end of the first stage of the installation, but before the    at the end of the install, but before the <filename>/target</filename>
224    <filename>/target</filename> filesystem has been unmounted    filesystem has been unmounted
 </para></listitem>  
 <listitem><para>  
   <userinput>base-config/early_command</userinput>: is run early in the second  
   stage of the installation when <command>base-config</command> is starting up  
 </para></listitem>  
 <listitem><para>  
   <userinput>base-config/late_command</userinput>: is run at the end of  
   <command>base-config</command>, just before the login prompt  
225  </para></listitem>  </para></listitem>
226  </itemizedlist>  </itemizedlist>
227    
# Line 423  install, you can use the command <comman Line 410  install, you can use the command <comman
410  </para>  </para>
411   </sect1>   </sect1>
412    
413   <sect1 id="preseed-stage1">   <sect1 id="preseed-contents">
414   <title>Preseeding the first stage of the installation</title>   <title>Contents of the preseed file</title>
415  <para>  <para>
416    
417  The configuration fragments used in this appendix are also available as an  The configuration fragments used in this appendix are also available as an
# Line 670  d-i time/zone string US/Eastern Line 657  d-i time/zone string US/Eastern
657    
658  Setup of the <filename>/etc/apt/sources.list</filename> and basic configuration  Setup of the <filename>/etc/apt/sources.list</filename> and basic configuration
659  options is fully automated based on your installation method and answers to  options is fully automated based on your installation method and answers to
660  earlier questions. Only the two variables below are relevant for preseeding.  earlier questions. Only the three variables below are relevant for preseeding.
661    
662  </para>  </para>
663    
# Line 678  earlier questions. Only the two variable Line 665  earlier questions. Only the two variable
665  # You can choose to install non-free and contrib software.  # You can choose to install non-free and contrib software.
666  #d-i apt-setup/non-free boolean true  #d-i apt-setup/non-free boolean true
667  #d-i apt-setup/contrib boolean true  #d-i apt-setup/contrib boolean true
668    # To avoid adding security sources, or to use a different server
669    # than security.debian.org.
670    #d-i apt-setup/security_host string
671  </screen></informalexample>  </screen></informalexample>
672    
673    </sect2>    </sect2>
# Line 767  d-i grub-installer/with_other_os boolean Line 757  d-i grub-installer/with_other_os boolean
757    
758    </sect2>    </sect2>
759    
760    <sect2 id="preseed-finish">    <sect2 id="preseed-pkgsel">
   <title>Finishing up the first stage install</title>  
   
 <informalexample role="example"><screen>  
 # Avoid that last message about the install being complete.  
 d-i prebaseconfig/reboot_in_progress note  
   
 # This will prevent the installer from ejecting the CD during the reboot,  
 # which is useful in some situations.  
 #d-i cdrom-detect/eject boolean false  
 </screen></informalexample>  
   
   </sect2>  
  </sect1>  
   
  <sect1 id="preseed-stage2">  
  <title>Preseeding the second stage of the installation</title>  
   
   <sect2 id="preseed-baseconfig">  
   <title>Base config</title>  
   
 <informalexample role="example"><screen>  
 # Avoid the introductory message.  
 base-config base-config/intro note  
   
 # Avoid the final message.  
 base-config base-config/login note  
   
 # If you installed a display manager, but don't want to start it immediately  
 # after base-config finishes.  
 #base-config base-config/start-display-manager boolean false  
   
 # Some versions of the installer can report back on what you've installed.  
 # The default is not to report back, but sending reports helps the project  
 # determine what software is most popular and include it on CDs.  
 #popularity-contest popularity-contest/participate boolean false  
 </screen></informalexample>  
   
   </sect2>  
   
   <sect2 id="preseed-tasksel">  
761    <title>Package selection</title>    <title>Package selection</title>
762  <para>  <para>
763    
# Line 844  Available tasks as of this writing inclu Line 794  Available tasks as of this writing inclu
794  <listitem><para>  <listitem><para>
795    <userinput>Laptop</userinput>    <userinput>Laptop</userinput>
796  </para></listitem>  </para></listitem>
 <listitem><para>  
   <userinput>manual package selection</userinput>  
 </para></listitem>  
797  </itemizedlist>  </itemizedlist>
798    
799  <para>  <para>
800    
801  The last of these will run aptitude. You can also choose to install no tasks,  You can also choose to install no tasks, and force the installation of a
802  and force the installation of a set of packages in some other way. We recommend  set of packages in some other way. We recommend always including the
803  always including the <userinput>Standard system</userinput> task.  <userinput>Standard system</userinput> task.
804    
805  </para>  </para>
806    
807  <informalexample role="example"><screen>  <informalexample role="example"><screen>
808  tasksel tasksel/first multiselect Standard system, Desktop environment  tasksel tasksel/first multiselect Standard system, Desktop environment
809  #tasksel tasksel/first multiselect Standard system, Web server  #tasksel tasksel/first multiselect Standard system, Web server
810    
811    # Some versions of the installer can report back on what software you have
812    # installed, and what software you ue. The default is not to report back,
813    # but sending reports helps the project determine what software is most
814    # popular and include it on CDs.
815    #popularity-contest popularity-contest/participate boolean false
816    </screen></informalexample>
817    
818      </sect2>
819    
820      <sect2 id="preseed-finish">
821      <title>Finishing up the first stage install</title>
822    
823    <informalexample role="example"><screen>
824    # Avoid that last message about the install being complete.
825    d-i prebaseconfig/reboot_in_progress note
826    
827    # This will prevent the installer from ejecting the CD during the reboot,
828    # which is useful in some situations.
829    #d-i cdrom-detect/eject boolean false
830  </screen></informalexample>  </screen></informalexample>
831    
832    </sect2>    </sect2>
# Line 953  xserver-xfree86 xserver-xfree86/config/m Line 920  xserver-xfree86 xserver-xfree86/config/m
920  #d-i preseed/early_command string anna-install some-udeb  #d-i preseed/early_command string anna-install some-udeb
921    
922  # This command is run just before the install finishes, but when there is  # This command is run just before the install finishes, but when there is
923  # still a usable /target directory.  # still a usable /target directory. You can chroot to /target and use it
924  #d-i preseed/late_command string echo foo > /target/etc/bar  # directly, or use the apt-install and in-target commands to easily install
925    # packages and run commands in the target system.
926  # This command is run just as base-config is starting up.  #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
 #base-config base-config/early_command string echo hi mom  
   
 # This command is run after base-config is done, just before the login:  
 # prompt. This is a good way to install a set of packages you want, or to  
 # tweak the configuration of the system.  
 #base-config base-config/late_command \  
 #      string apt-get install zsh; chsh -s /bin/zsh  
927  </screen></informalexample>  </screen></informalexample>
928    
929    </sect2>    </sect2>

Legend:
Removed from v.33718  
changed lines
  Added in v.33719

  ViewVC Help
Powered by ViewVC 1.1.5