Automating Ubiquity

With respect to automation, ubiquity, the desktop CD installer, works much in the same way that debian-installer, the alternate CD installer does. Therefore, it is recommended that you first read the debian-installer installation guide and create a working preseed file for that before continuing here.

Using preseed files

Like debian-installer, you have three options for passing your preseed file to the installer. You can place it in the root of the initrd as the preseed.cfg file, you can place it on the CD-ROM and specify its location using the file= boot parameter, or you can specify its location on a web server using the url= boot parameter.

Unlike debian-installer, ubiquity may be invoked several times in a session without restarting the computer, such as when the user chooses to cancel the install and return later to finish it. For this reason, ubiquity ignores the 'seen' flag (which is used by debconf to indicate that a question should not be asked again) by default. This is usually inappropriate for preseeding, so you need to arrange for ubiquity to start up in "automatic mode", either by adding the 'automatic-ubiquity' option as a boot parameter, or by passing the --automatic argument to ubiquity if you are starting it up in some other way. In automatic mode, ubiquity will respect the seen flag and will not present pages where all of the questions have been successfully answered.

Available preseeding keys

Ubiquity uses a subset of the components that Ubuntu's version of debian-installer uses and therefore asks the same questions for those components. However, there are some additional questions provided. These are as follows:

Furthermore, there are a few other components necessary for an automated installation with ubiquity:

Preseeding keys for the following installer components will not be used in Ubiquity, usually because they do not fit with Ubiquity's mode of operation:

You can use preseed/early_command with the live CD; it will be run by "casper" (the component which sets up a live environment at boot time) from the initramfs. Please note that, if you want to affect files in the live environment, this means that you must prefix their filenames with /root.

Notes

UbiquityAutomation (last edited 2019-07-12 07:07:21 by tsimonq2)