La preconfiguración ofrece un mecanismo para responder a preguntas realizadas durante la instalación sin tener que introducir manualmente las respuestas mientras ésta se ejecuta. Esto hace posible que se automaticen la mayoría de las instalaciones e incluso ofrece funcionalidades que no están disponibles durante una instalación normal.
La preconfiguración no es indispensable. Si usa un fichero vacío de preconfiguración, el instalador se comportará como una instalación manual usual. Cada pregunta que haya preconfigurado modificará (¡si lo ha hecho bien!) la instalación de alguna forma con tal información.
Se pueden utilizar tres métodos de preconfiguración: initrd (imagen de arranque), file (fichero, n. del t.) y network (red, n. del t.). La preconfiguración a través de initrd funciona en cualquier método de instalación y permite preconfigurar más cosas, pero es la que más preparación requiere. Los métodos de preconfiguración con fichero o vía red se pueden utilizar en distintos métodos de instalación.
La siguiente tabla muestra los métodos de preconfiguración que se puedenutilizar con los distintos métodos de instalación.
Método de instalación | initrd | file | network |
---|---|---|---|
CD/DVD/USB | sí | sí | sí[a] |
netboot | sí | no | sí |
hd-media | sí | sí | sí[a] |
[a] pero sólo si tiene acceso a la red y configura |
An important difference between the preseeding methods is the point at which the preconfiguration file is loaded and processed. For initrd preseeding this is right at the start of the installation, before the first question is even asked. Preseeding from the kernel command line happens just after. It is thus possible to override configuration set in the initrd by editing the kernel command line (either in the bootloader configuration or manually at boot time for bootloaders that allow it). For file preseeding this is after the installation image has been loaded. For network preseeding it is only after the network has been configured.
![]() |
Importante |
---|---|
Obviously, any questions that have been processed before the preconfiguration file is loaded cannot be preseeded (this will include questions that are only displayed at medium or low priority, like the first hardware detection run). A not so convenient way to avoid these questions from being asked is to preseed them through the boot parameters, as described in Sección B.2.2, “Usar parámetros de arranque para preconfigurar preguntas”. In order to easily avoid the questions that would normally appear before the preseeding occurs, you can start the installer in “auto” mode. This delays questions that would normally be asked too early for preseeding (i.e. language, country and keyboard selection) until after the network comes up, thus allowing them to be preseeded. It also runs the installation at critical priority, which avoids many unimportant questions. See Sección B.2.3, “Modo «auto»” for details. |