During manual installation, CentOS creates the file /root/anaconda-ks.cfg, in which all parameters of manual installation are recorded. After that, the file can be used for typical installation of multiple machines.

How to write auto installer settings for Ubuntu? It is not to create a new file yourself, but to write down the parameters when installing a new system.

    1 answer 1

    if you use text mode during installation, then the debian-installer program that is started creates the directory /var/log/installer in the target file system, which also contains the file /var/log/installer/cdebconf/questions.dat which can be used as a “blank” for a preseed file .

    You can get such a “workpiece” using the debconf-get-selections script (from the debconf-utils package):

     $ sudo debconf-get-selections --installer > файл $ sudo debconf-get-selections >> файл 

    from my personal experience, I would advise taking the “exemplary” file example-preseed.txt as a basis for autoconfiguration, and use the contents of the file obtained with the help of debconf-get-selections except as an illustration.

    addition about the difference between preseed files for debian and ubuntu . besides commented lines, there are only four differences:

    1. Added parameter about disabling the language selection dialog:

       di console-setup/ask_detect boolean false 
    2. A different package repository is specified (which is quite natural).
    3. explicitly stated not to encrypt the home directory of the first user to be created:

       di user-setup/encrypt-home boolean false 
    4. The installation of the ubuntu-desktop meta-package is indicated as a task choice:

       tasksel tasksel/first multiselect ubuntu-desktop 

    additional information:

    • The fact is that the existing configuration file, which previously worked on Ubuntu 14.04 without problems, now does not work on Ubuntu 16.04. So I would like not only to find the reason, but to create several boot options with different parameters. - RemiZOffAlex
    • It does not work, it means it stops at any point and waits for manual input. - RemiZOffAlex
    • This is not the crux of the matter. The item is already included in the configuration file. - RemiZOffAlex
    • Not. I can be wrong, but it seems that localechooser / preferred-locale stopped at this point - RemiZOffAlex
    • Alexander, I have to focus your attention on "This is not the crux of the matter"! - RemiZOffAlex