Forhåndskonfiguration tilbyder en måde at angive svar på spørgsmål, der stilles under installationsprocessen, uden at skulle indtaste dem manuelt, mens installationen er i gang. Dette gør det muligt at automatisere de fleste typer af installationer og endda tilbyde nogle funktioner, som ikke er tilgængelige under normale installationer.
Forhåndskonfiguration er ikke krævet. Hvis du bruger en tom fil til forhåndskonfiguration, så vil installationsprogrammet opføre sig som under en normal manuel installation. Hvert spørgsmål du angiver i forhåndskonfigurationen vil (hvis du har gjort det korrekt) ændre installationen på en eller anden måde.
There are three methods that can be used for preseeding: initrd, file and network. Initrd preseeding will work with any installation method and supports preseeding of more things, but it requires the most preparation. File and network preseeding each can be used with different installation methods.
Den følgende tabel viser hvilke metoder for forhåndskonfiguration, der kan bruges med hvilke installationsmetoder.
Installationsmetode | initrd | fil | netværk |
---|---|---|---|
Cd/dvd | ja | ja | ja[a] |
netboot | ja | nej | ja |
hd-media (including usb-stick) | ja | ja | yes[a] |
[a] but only if you have network access, and set |
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. For file preseeding this is after the CD or CD image has been loaded. For network preseeding it is only after the network has been configured.
![]() |
Vigtigt |
---|---|
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 Afsnit B.2.2, “Using boot parameters to preseed questions”. 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 Afsnit B.2.3, “Auto mode” for details. |