File: README.preseed

package info (click to toggle)
di-netboot-assistant 0.79
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 316 kB
  • sloc: sh: 1,511; makefile: 2
file content (52 lines) | stat: -rw-r--r-- 2,281 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

             Preseeding and Automatic Installation
            =======================================

Preseeding [1][2] provides a way to set answers to questions asked
during the installation process, without having to manually enter the
answers while the installation is running.  This makes it possible to
fully automate installations.

To use preseeding with 'di-netboot-assistant', do the following:

 • Provide a 'preseed.cfg' file.  An example is available:
   '/usr/share/doc/di-netboot-assistant/examples/preseed.cfg'.
   Copy it to the directory '$TFTP_ROOT/d-i/<CODENAME>/', where
   <CODENAME> is the release you want to install:

   # mkdir -p /var/lib/tftpboot/d-i/<CODENAME>/
   # cp /usr/share/doc/di-netboot-assistant/examples/preseed.cfg \
                                    /var/lib/tftpboot/d-i/<CODENAME>/

 • Modify it to fit your needs.  You might want to modify the
   partitioning and provide another (or no) public key for ssh.  The
   user's password provided should be changed after the installation.

 • Enable the commented sections in:
      '/etc/di-netboot-assistant/pxelinux.HEAD' and
      '/etc/di-netboot-assistant/grub.cfg.HEAD'.
   Run 'di-netboot-assistant rebuild-menu' to add the new boot entry
   to the PXElinux and grub-efi menus.

 • Make sure the TFTP server is resolved as 'installbox' (or modify
   the boot parameter 'url=tftp://installbox' to fit your local
   setup).

 • Configure the DHCP server to provide a hostname for the client.
   This hostname will be assigned to the host during installation.
   If you use 'dnsmasq', the latter can be achieved by adding
   corresponding lines in the host's '/etc/hosts' file.

The provided example 'preseed.cfg' configures ssh login for the user
'ansible' with public key authentication.  This allows further
customization of the system after installation using ansible
playbooks.

In addition, it shows how to apply a playbook (defined by the
'playbook=example.yml' boot parameter) already during installation
with 'ansible-pull'.  This allows to add installer boot menu entries
with different playbooks and choose a profile at install time.


[1] <URL:https://wiki.debian.org/DebianInstaller/Preseed>
[2] <URL:https://www.debian.org/releases/stable/amd64/apb.html.en>