Differences between revisions 79 and 80
Revision 79 as of 2008-03-03 09:13:07
Size: 3613
Editor: Mac
Comment:
Revision 80 as of 2008-03-03 09:52:02
Size: 3617
Editor: Mac
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Most of the questions asked by DebianInstaller can be preseeded by setting the answers in the DebConf database. This can be used to do automatic installs. The Installation Guide includes an [http://d-i.alioth.debian.org/manual/en.i386/apb.html extensive appendix] dedicated to preseeding and includes a complete example. Feel free to add any information that is not covered in the manual to the notes below. Most of the questions asked by DebianInstaller can be preseeded by setting the answers in the ["debconf"] database. This can be used to do automatic installs. The Installation Guide includes an [http://d-i.alioth.debian.org/manual/en.i386/apb.html extensive appendix] dedicated to preseeding and includes a complete example. Feel free to add any information that is not covered in the manual to the notes below.

Preseeding d-i

Most of the questions asked by DebianInstaller can be preseeded by setting the answers in the ["debconf"] database. This can be used to do automatic installs. The Installation Guide includes an [http://d-i.alioth.debian.org/manual/en.i386/apb.html extensive appendix] dedicated to preseeding and includes a complete example. Feel free to add any information that is not covered in the manual to the notes below.

Examples

Post here any links you have to example preseed files. Note that using any of these files directly is not wise, as a malicious person could probably come up with values for a preseed file that makes d-i misbehave. Also, the files are downloaded over http, so are vulnerable to man in the middle spoof attacks. The best way to use any preseed file is to copy it to your own local web server or media, and look it over before using it.

  • Joey Hess's modular/hierarchical preseed configuration, supporting installs via usb keychain or netboot with varying configurations for different machine types. http://dilab.debian.net:800/~joey/d-i/preseed/

  • Christian Perrier's page documenting automated d-i installs in vmware, using netboot. http://people.debian.org/~bubulle/d-i/vmware-fai.html

  • Simon Kirkby's fully automatic basic install. !Warning! will format machine without asking. http://interthingy.com/digby

  • Holger Levsen's d-i examples showing a way to preserve partitions and ssh-host-keys: http://layer-acht.org/d-i/

  • Using network-console and preseeding is described on two pages, DebianInstaller/NetworkConsole and ["DebianInstaller/Remote"]

  • Phil Hands' d-i setup, that allows minimal (i.e. no exim) installs, works from CD, PXE & USB (read the HOWTO's), and allows custom configs to be specified at the boot: prompt http://hands.com/d-i/

  • DebianInstaller/AsSshClient for using d-i as a ssh terminal

  • Instalinux lets you answer a few questions on the web and generate an ISO image that can be used to install Debian noninteractively, or a preseed file that you can use with other install methods. http://www.instalinux.com/

  • Christian Perrier documented a D-I demo setup in DebianInstaller/BabelBox

  • Debian Administration has an article on using preseeding: http://www.debian-administration.org/articles/394

  • Filip Van Raemdonck documented modifying an iso to include the preseed file in ["DebianInstaller/Preseed/EditIso"]
  • Gürkan Sengün with a very simple preseed.cfg for fully automatic installation of workstations using dphys-config: http://debian.ethz.ch/d-i/p (Used for i386, amd64 installs on a wide variety of hardware configurations, with a wide variety of use of the computers. Including large repositories of special software)

Notes

  • Do not work off a debconf-get-selections (--installer) generated preseed.cfg but get the values from it and modify the example preseed file with them.

  • Be aware there is only one space in preseed files between subkey and value on "owner key/subkey value" lines.

  • Do not reboot in the base-config/late_command command, the installation process will start again at the start of the 2nd stage.

  • Preseeding has changed significantly in etch, preseed files for sarge will need to be updated or re-done. The largest change is the removal of base-config, which means that base-config/late_command and base-config/early_command are no longer available.

  • To install additional packages in etch, you can preseed preseed/early_command to run "apt-install package".