| 1 |
#### Contents of the preconfiguration file (for stretch) |
| 2 |
### Localization |
| 3 |
# Preseeding only locale sets language, country and locale. |
| 4 |
d-i debian-installer/locale string en_US |
| 5 |
|
| 6 |
# The values can also be preseeded individually for greater flexibility. |
| 7 |
#d-i debian-installer/language string en |
| 8 |
#d-i debian-installer/country string NL |
| 9 |
#d-i debian-installer/locale string en_GB.UTF-8 |
| 10 |
# Optionally specify additional locales to be generated. |
| 11 |
#d-i localechooser/supported-locales multiselect en_US.UTF-8, nl_NL.UTF-8 |
| 12 |
|
| 13 |
# Keyboard selection. |
| 14 |
d-i keyboard-configuration/xkb-keymap select us |
| 15 |
# d-i keyboard-configuration/toggle select No toggling |
| 16 |
|
| 17 |
### Network configuration |
| 18 |
# Disable network configuration entirely. This is useful for cdrom |
| 19 |
# installations on non-networked devices where the network questions, |
| 20 |
# warning and long timeouts are a nuisance. |
| 21 |
d-i netcfg/enable boolean true |
| 22 |
|
| 23 |
# netcfg will choose an interface that has link if possible. This makes it |
| 24 |
# skip displaying a list if there is more than one interface. |
| 25 |
d-i netcfg/choose_interface select auto |
| 26 |
|
| 27 |
# To pick a particular interface instead: |
| 28 |
#d-i netcfg/choose_interface select eth1 |
| 29 |
|
| 30 |
# To set a different link detection timeout (default is 3 seconds). |
| 31 |
# Values are interpreted as seconds. |
| 32 |
#d-i netcfg/link_wait_timeout string 10 |
| 33 |
|
| 34 |
# If you have a slow dhcp server and the installer times out waiting for |
| 35 |
# it, this might be useful. |
| 36 |
#d-i netcfg/dhcp_timeout string 60 |
| 37 |
#d-i netcfg/dhcpv6_timeout string 60 |
| 38 |
|
| 39 |
# If you prefer to configure the network manually, uncomment this line and |
| 40 |
# the static network configuration below. |
| 41 |
#d-i netcfg/disable_autoconfig boolean true |
| 42 |
|
| 43 |
# If you want the preconfiguration file to work on systems both with and |
| 44 |
# without a dhcp server, uncomment these lines and the static network |
| 45 |
# configuration below. |
| 46 |
#d-i netcfg/dhcp_failed note |
| 47 |
#d-i netcfg/dhcp_options select Configure network manually |
| 48 |
|
| 49 |
# Static network configuration. |
| 50 |
# |
| 51 |
# IPv4 example |
| 52 |
#d-i netcfg/get_ipaddress string 192.168.1.42 |
| 53 |
#d-i netcfg/get_netmask string 255.255.255.0 |
| 54 |
#d-i netcfg/get_gateway string 192.168.1.1 |
| 55 |
#d-i netcfg/get_nameservers string 192.168.1.1 |
| 56 |
#d-i netcfg/confirm_static boolean true |
| 57 |
# |
| 58 |
# IPv6 example |
| 59 |
#d-i netcfg/get_ipaddress string fc00::2 |
| 60 |
#d-i netcfg/get_netmask string ffff:ffff:ffff:ffff:: |
| 61 |
#d-i netcfg/get_gateway string fc00::1 |
| 62 |
#d-i netcfg/get_nameservers string fc00::1 |
| 63 |
#d-i netcfg/confirm_static boolean true |
| 64 |
|
| 65 |
# Any hostname and domain names assigned from dhcp take precedence over |
| 66 |
# values set here. However, setting the values still prevents the questions |
| 67 |
# from being shown, even if values come from dhcp. |
| 68 |
d-i netcfg/get_hostname string unassigned-hostname |
| 69 |
d-i netcfg/get_domain string unassigned-domain |
| 70 |
|
| 71 |
# If you want to force a hostname, regardless of what either the DHCP |
| 72 |
# server returns or what the reverse DNS entry for the IP is, uncomment |
| 73 |
# and adjust the following line. |
| 74 |
d-i netcfg/hostname string unassigned-hostname.unassigned-domain |
| 75 |
|
| 76 |
# Disable that annoying WEP key dialog. |
| 77 |
d-i netcfg/wireless_wep string |
| 78 |
# The wacky dhcp hostname that some ISPs use as a password of sorts. |
| 79 |
#d-i netcfg/dhcp_hostname string radish |
| 80 |
|
| 81 |
# If non-free firmware is needed for the network or other hardware, you can |
| 82 |
# configure the installer to always try to load it, without prompting. Or |
| 83 |
# change to false to disable asking. |
| 84 |
#d-i hw-detect/load_firmware boolean true |
| 85 |
|
| 86 |
### Network console |
| 87 |
# Use the following settings if you wish to make use of the network-console |
| 88 |
# component for remote installation over SSH. This only makes sense if you |
| 89 |
# intend to perform the remainder of the installation manually. |
| 90 |
#d-i anna/choose_modules string network-console |
| 91 |
#d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key |
| 92 |
#d-i network-console/password password r00tme |
| 93 |
#d-i network-console/password-again password r00tme |
| 94 |
|
| 95 |
### Mirror settings |
| 96 |
# If you select ftp, the mirror/country string does not need to be set. |
| 97 |
#d-i mirror/protocol string ftp |
| 98 |
d-i mirror/country string manual |
| 99 |
d-i mirror/http/hostname string deb.debian.org |
| 100 |
d-i mirror/http/directory string /debian |
| 101 |
#d-i mirror/http/proxy string |
| 102 |
|
| 103 |
# Suite to install. |
| 104 |
#d-i mirror/suite string testing |
| 105 |
# Suite to use for loading installer components (optional). |
| 106 |
#d-i mirror/udeb/suite string testing |
| 107 |
|
| 108 |
### Account setup |
| 109 |
# Skip creation of a root account (normal user account will be able to |
| 110 |
# use sudo). |
| 111 |
#d-i passwd/root-login boolean false |
| 112 |
# Alternatively, to skip creation of a normal user account. |
| 113 |
d-i passwd/make-user boolean false |
| 114 |
|
| 115 |
# Root password, either in clear text |
| 116 |
d-i passwd/root-password password builder |
| 117 |
d-i passwd/root-password-again password builder |
| 118 |
# or encrypted using a crypt(3) hash. |
| 119 |
#d-i passwd/root-password-crypted password [crypt(3) hash] |
| 120 |
|
| 121 |
# To create a normal user account. |
| 122 |
#d-i passwd/user-fullname string Debian User |
| 123 |
#d-i passwd/username string debian |
| 124 |
# Normal user's password, either in clear text |
| 125 |
#d-i passwd/user-password password insecure |
| 126 |
#d-i passwd/user-password-again password insecure |
| 127 |
# or encrypted using a crypt(3) hash. |
| 128 |
#d-i passwd/user-password-crypted password [crypt(3) hash] |
| 129 |
# Create the first user with the specified UID instead of the default. |
| 130 |
#d-i passwd/user-uid string 1010 |
| 131 |
|
| 132 |
# The user account will be added to some standard initial groups. To |
| 133 |
# override that, use this. |
| 134 |
#d-i passwd/user-default-groups string audio cdrom video |
| 135 |
|
| 136 |
### Clock and time zone setup |
| 137 |
# Controls whether or not the hardware clock is set to UTC. |
| 138 |
d-i clock-setup/utc boolean true |
| 139 |
|
| 140 |
# You may set this to any valid setting for $TZ; see the contents of |
| 141 |
# /usr/share/zoneinfo/ for valid values. |
| 142 |
d-i time/zone string US/Eastern |
| 143 |
|
| 144 |
# Controls whether to use NTP to set the clock during the install |
| 145 |
d-i clock-setup/ntp boolean true |
| 146 |
# NTP server to use. The default is almost always fine here. |
| 147 |
#d-i clock-setup/ntp-server string ntp.example.com |
| 148 |
|
| 149 |
### Partitioning |
| 150 |
## Partitioning example |
| 151 |
# If the system has free space you can choose to only partition that space. |
| 152 |
# This is only honoured if partman-auto/method (below) is not set. |
| 153 |
#d-i partman-auto/init_automatically_partition select biggest_free |
| 154 |
|
| 155 |
# Alternatively, you may specify a disk to partition. If the system has only |
| 156 |
# one disk the installer will default to using that, but otherwise the device |
| 157 |
# name must be given in traditional, non-devfs format (so e.g. /dev/sda |
| 158 |
# and not e.g. /dev/discs/disc0/disc). |
| 159 |
# For example, to use the first SCSI/SATA hard disk: |
| 160 |
#d-i partman-auto/disk string /dev/sda |
| 161 |
# In addition, you'll need to specify the method to use. |
| 162 |
# The presently available methods are: |
| 163 |
# - regular: use the usual partition types for your architecture |
| 164 |
# - lvm: use LVM to partition the disk |
| 165 |
# - crypto: use LVM within an encrypted partition |
| 166 |
d-i partman-auto/method string regular |
| 167 |
|
| 168 |
# If one of the disks that are going to be automatically partitioned |
| 169 |
# contains an old LVM configuration, the user will normally receive a |
| 170 |
# warning. This can be preseeded away... |
| 171 |
d-i partman-lvm/device_remove_lvm boolean true |
| 172 |
# The same applies to pre-existing software RAID array: |
| 173 |
d-i partman-md/device_remove_md boolean true |
| 174 |
# And the same goes for the confirmation to write the lvm partitions. |
| 175 |
d-i partman-lvm/confirm boolean true |
| 176 |
d-i partman-lvm/confirm_nooverwrite boolean true |
| 177 |
d-i partman-basicfilesystems/no_swap boolean false |
| 178 |
|
| 179 |
d-i partman-auto/expert_recipe string myroot :: 500 10000 1000000 ext4 \ |
| 180 |
$primary{ } \ |
| 181 |
$bootable{ } \ |
| 182 |
method{ format } \ |
| 183 |
format{ } \ |
| 184 |
use_filesystem{ } \ |
| 185 |
filesystem{ ext4 } \ |
| 186 |
mountpoint{ / } . |
| 187 |
|
| 188 |
# You can choose one of the three predefined partitioning recipes: |
| 189 |
# - atomic: all files in one partition |
| 190 |
# - home: separate /home partition |
| 191 |
# - multi: separate /home, /var, and /tmp partitions |
| 192 |
|
| 193 |
d-i partman-auto/choose_recipe select myroot |
| 194 |
|
| 195 |
# Or provide a recipe of your own... |
| 196 |
# If you have a way to get a recipe file into the d-i environment, you can |
| 197 |
# just point at it. |
| 198 |
#d-i partman-auto/expert_recipe_file string /hd-media/recipe |
| 199 |
|
| 200 |
# If not, you can put an entire recipe into the preconfiguration file in one |
| 201 |
# (logical) line. This example creates a small /boot partition, suitable |
| 202 |
# swap, and uses the rest of the space for the root partition: |
| 203 |
#d-i partman-auto/expert_recipe string \ |
| 204 |
# boot-root :: \ |
| 205 |
# 40 50 100 ext3 \ |
| 206 |
# $primary{ } $bootable{ } \ |
| 207 |
# method{ format } format{ } \ |
| 208 |
# use_filesystem{ } filesystem{ ext3 } \ |
| 209 |
# mountpoint{ /boot } \ |
| 210 |
# . \ |
| 211 |
# 500 10000 1000000000 ext3 \ |
| 212 |
# method{ format } format{ } \ |
| 213 |
# use_filesystem{ } filesystem{ ext3 } \ |
| 214 |
# mountpoint{ / } \ |
| 215 |
# . \ |
| 216 |
# 64 512 300% linux-swap \ |
| 217 |
# method{ swap } format{ } \ |
| 218 |
# . |
| 219 |
|
| 220 |
# The full recipe format is documented in the file partman-auto-recipe.txt |
| 221 |
# included in the 'debian-installer' package or available from D-I source |
| 222 |
# repository. This also documents how to specify settings such as file |
| 223 |
# system labels, volume group names and which physical devices to include |
| 224 |
# in a volume group. |
| 225 |
|
| 226 |
# This makes partman automatically partition without confirmation, provided |
| 227 |
# that you told it what to do using one of the methods above. |
| 228 |
d-i partman-partitioning/confirm_write_new_label boolean true |
| 229 |
d-i partman/choose_partition select finish |
| 230 |
d-i partman/confirm boolean true |
| 231 |
d-i partman/confirm_nooverwrite boolean true |
| 232 |
|
| 233 |
# When disk encryption is enabled, skip wiping the partitions beforehand. |
| 234 |
#d-i partman-auto-crypto/erase_disks boolean false |
| 235 |
|
| 236 |
## Partitioning using RAID |
| 237 |
# The method should be set to "raid". |
| 238 |
#d-i partman-auto/method string raid |
| 239 |
# Specify the disks to be partitioned. They will all get the same layout, |
| 240 |
# so this will only work if the disks are the same size. |
| 241 |
#d-i partman-auto/disk string /dev/sda /dev/sdb |
| 242 |
|
| 243 |
# Next you need to specify the physical partitions that will be used. |
| 244 |
#d-i partman-auto/expert_recipe string \ |
| 245 |
# multiraid :: \ |
| 246 |
# 1000 5000 4000 raid \ |
| 247 |
# $primary{ } method{ raid } \ |
| 248 |
# . \ |
| 249 |
# 64 512 300% raid \ |
| 250 |
# method{ raid } \ |
| 251 |
# . \ |
| 252 |
# 500 10000 1000000000 raid \ |
| 253 |
# method{ raid } \ |
| 254 |
# . |
| 255 |
|
| 256 |
# Last you need to specify how the previously defined partitions will be |
| 257 |
# used in the RAID setup. Remember to use the correct partition numbers |
| 258 |
# for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported; |
| 259 |
# devices are separated using "#". |
| 260 |
# Parameters are: |
| 261 |
# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \ |
| 262 |
# <devices> <sparedevices> |
| 263 |
|
| 264 |
#d-i partman-auto-raid/recipe string \ |
| 265 |
# 1 2 0 ext3 / \ |
| 266 |
# /dev/sda1#/dev/sdb1 \ |
| 267 |
# . \ |
| 268 |
# 1 2 0 swap - \ |
| 269 |
# /dev/sda5#/dev/sdb5 \ |
| 270 |
# . \ |
| 271 |
# 0 2 0 ext3 /home \ |
| 272 |
# /dev/sda6#/dev/sdb6 \ |
| 273 |
# . |
| 274 |
|
| 275 |
# For additional information see the file partman-auto-raid-recipe.txt |
| 276 |
# included in the 'debian-installer' package or available from D-I source |
| 277 |
# repository. |
| 278 |
|
| 279 |
# This makes partman automatically partition without confirmation. |
| 280 |
d-i partman-md/confirm boolean true |
| 281 |
d-i partman-partitioning/confirm_write_new_label boolean true |
| 282 |
d-i partman/choose_partition select finish |
| 283 |
d-i partman/confirm boolean true |
| 284 |
d-i partman/confirm_nooverwrite boolean true |
| 285 |
|
| 286 |
## Controlling how partitions are mounted |
| 287 |
# The default is to mount by UUID, but you can also choose "traditional" to |
| 288 |
# use traditional device names, or "label" to try filesystem labels before |
| 289 |
# falling back to UUIDs. |
| 290 |
#d-i partman/mount_style select uuid |
| 291 |
|
| 292 |
### Base system installation |
| 293 |
# Configure APT to not install recommended packages by default. Use of this |
| 294 |
# option can result in an incomplete system and should only be used by very |
| 295 |
# experienced users. |
| 296 |
#d-i base-installer/install-recommends boolean false |
| 297 |
|
| 298 |
# The kernel image (meta) package to be installed; "none" can be used if no |
| 299 |
# kernel is to be installed. |
| 300 |
#d-i base-installer/kernel/image string linux-image-486 |
| 301 |
|
| 302 |
### Apt setup |
| 303 |
# You can choose to install non-free and contrib software. |
| 304 |
#d-i apt-setup/non-free boolean true |
| 305 |
#d-i apt-setup/contrib boolean true |
| 306 |
# Uncomment this if you don't want to use a network mirror. |
| 307 |
#d-i apt-setup/use_mirror boolean false |
| 308 |
# Select which update services to use; define the mirrors to be used. |
| 309 |
# Values shown below are the normal defaults. |
| 310 |
#d-i apt-setup/services-select multiselect security, volatile |
| 311 |
#d-i apt-setup/security_host string security.debian.org |
| 312 |
#d-i apt-setup/volatile_host string volatile.debian.org |
| 313 |
|
| 314 |
# Additional repositories, local[0-9] available |
| 315 |
#d-i apt-setup/local0/repository string \ |
| 316 |
# http://local.server/debian stable main |
| 317 |
#d-i apt-setup/local0/comment string local server |
| 318 |
# Enable deb-src lines |
| 319 |
#d-i apt-setup/local0/source boolean true |
| 320 |
# URL to the public key of the local repository; you must provide a key or |
| 321 |
# apt will complain about the unauthenticated repository and so the |
| 322 |
# sources.list line will be left commented out |
| 323 |
#d-i apt-setup/local0/key string http://local.server/key |
| 324 |
|
| 325 |
# By default the installer requires that repositories be authenticated |
| 326 |
# using a known gpg key. This setting can be used to disable that |
| 327 |
# authentication. Warning: Insecure, not recommended. |
| 328 |
#d-i debian-installer/allow_unauthenticated boolean true |
| 329 |
|
| 330 |
# Uncomment this to add multiarch configuration for i386 |
| 331 |
#d-i apt-setup/multiarch string i386 |
| 332 |
|
| 333 |
|
| 334 |
### Package selection |
| 335 |
tasksel tasksel/first multiselect standard, ssh-server |
| 336 |
|
| 337 |
# Individual additional packages to install |
| 338 |
#d-i pkgsel/include string openssh-server build-essential |
| 339 |
# Whether to upgrade packages after debootstrap. |
| 340 |
# Allowed values: none, safe-upgrade, full-upgrade |
| 341 |
d-i pkgsel/upgrade select full-upgrade |
| 342 |
|
| 343 |
# Some versions of the installer can report back on what software you have |
| 344 |
# installed, and what software you use. The default is not to report back, |
| 345 |
# but sending reports helps the project determine what software is most |
| 346 |
# popular and include it on CDs. |
| 347 |
popularity-contest popularity-contest/participate boolean false |
| 348 |
|
| 349 |
### Boot loader installation |
| 350 |
# Grub is the default boot loader (for x86). If you want lilo installed |
| 351 |
# instead, uncomment this: |
| 352 |
#d-i grub-installer/skip boolean true |
| 353 |
# To also skip installing lilo, and install no bootloader, uncomment this |
| 354 |
# too: |
| 355 |
#d-i lilo-installer/skip boolean true |
| 356 |
|
| 357 |
|
| 358 |
# This is fairly safe to set, it makes grub install automatically to the MBR |
| 359 |
# if no other operating system is detected on the machine. |
| 360 |
d-i grub-installer/only_debian boolean true |
| 361 |
|
| 362 |
# This one makes grub-installer install to the MBR if it also finds some other |
| 363 |
# OS, which is less safe as it might not be able to boot that other OS. |
| 364 |
d-i grub-installer/with_other_os boolean true |
| 365 |
|
| 366 |
# Due notably to potential USB sticks, the location of the MBR can not be |
| 367 |
# determined safely in general, so this needs to be specified: |
| 368 |
#d-i grub-installer/bootdev string /dev/sda |
| 369 |
# To install to the first device (assuming it is not a USB stick): |
| 370 |
d-i grub-installer/bootdev string default |
| 371 |
|
| 372 |
# Alternatively, if you want to install to a location other than the mbr, |
| 373 |
# uncomment and edit these lines: |
| 374 |
#d-i grub-installer/only_debian boolean false |
| 375 |
#d-i grub-installer/with_other_os boolean false |
| 376 |
#d-i grub-installer/bootdev string (hd0,1) |
| 377 |
# To install grub to multiple disks: |
| 378 |
#d-i grub-installer/bootdev string (hd0,1) (hd1,1) (hd2,1) |
| 379 |
|
| 380 |
# Optional password for grub, either in clear text |
| 381 |
#d-i grub-installer/password password r00tme |
| 382 |
#d-i grub-installer/password-again password r00tme |
| 383 |
# or encrypted using an MD5 hash, see grub-md5-crypt(8). |
| 384 |
#d-i grub-installer/password-crypted password [MD5 hash] |
| 385 |
|
| 386 |
# Use the following option to add additional boot parameters for the |
| 387 |
# installed system (if supported by the bootloader installer). |
| 388 |
# Note: options passed to the installer will be added automatically. |
| 389 |
#d-i debian-installer/add-kernel-opts string nousb |
| 390 |
|
| 391 |
### Finishing up the installation |
| 392 |
# During installations from serial console, the regular virtual consoles |
| 393 |
# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next |
| 394 |
# line to prevent this. |
| 395 |
#d-i finish-install/keep-consoles boolean true |
| 396 |
|
| 397 |
# Avoid that last message about the install being complete. |
| 398 |
d-i finish-install/reboot_in_progress note |
| 399 |
|
| 400 |
# This will prevent the installer from ejecting the CD during the reboot, |
| 401 |
# which is useful in some situations. |
| 402 |
#d-i cdrom-detect/eject boolean false |
| 403 |
|
| 404 |
# This is how to make the installer shutdown when finished, but not |
| 405 |
# reboot into the installed system. |
| 406 |
#d-i debian-installer/exit/halt boolean true |
| 407 |
# This will power off the machine instead of just halting it. |
| 408 |
#d-i debian-installer/exit/poweroff boolean true |
| 409 |
|
| 410 |
### Preseeding other packages |
| 411 |
# Depending on what software you choose to install, or if things go wrong |
| 412 |
# during the installation process, it's possible that other questions may |
| 413 |
# be asked. You can preseed those too, of course. To get a list of every |
| 414 |
# possible question that could be asked during an install, do an |
| 415 |
# installation, and then run these commands: |
| 416 |
# debconf-get-selections --installer > file |
| 417 |
# debconf-get-selections >> file |
| 418 |
|
| 419 |
|
| 420 |
#### Advanced options |
| 421 |
### Running custom commands during the installation |
| 422 |
# d-i preseeding is inherently not secure. Nothing in the installer checks |
| 423 |
# for attempts at buffer overflows or other exploits of the values of a |
| 424 |
# preconfiguration file like this one. Only use preconfiguration files from |
| 425 |
# trusted locations! To drive that home, and because it's generally useful, |
| 426 |
# here's a way to run any shell command you'd like inside the installer, |
| 427 |
# automatically. |
| 428 |
|
| 429 |
# This first command is run as early as possible, just after |
| 430 |
# preseeding is read. |
| 431 |
#d-i preseed/early_command string anna-install some-udeb |
| 432 |
# This command is run immediately before the partitioner starts. It may be |
| 433 |
# useful to apply dynamic partitioner preseeding that depends on the state |
| 434 |
# of the disks (which may not be visible when preseed/early_command runs). |
| 435 |
#d-i partman/early_command \ |
| 436 |
# string debconf-set partman-auto/disk "$(list-devices disk | head -n1)" |
| 437 |
# This command is run just before the install finishes, but when there is |
| 438 |
# still a usable /target directory. You can chroot to /target and use it |
| 439 |
# directly, or use the apt-install and in-target commands to easily install |
| 440 |
# packages and run commands in the target system. |
| 441 |
#d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh |
| 442 |
d-i preseed/late_command string in-target sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0,115200n8"/g; s/# *GRUB_TERMINAL=console/GRUB_TERMINAL=serial/g' /etc/default/grub; in-target update-grub |
| 443 |
|