1 | ### Partitioning
|
---|
2 | d-i partman-auto/disk string /dev/sda
|
---|
3 | d-i partman-auto/method string regular
|
---|
4 | d-i partman-lvm/device_remove_lvm boolean true
|
---|
5 | d-i partman-md/device_remove_md boolean true
|
---|
6 | d-i partman-auto/choose_recipe select atomic
|
---|
7 |
|
---|
8 | # This makes partman automatically partition without confirmation
|
---|
9 | d-i partman-partitioning/confirm_write_new_label boolean true
|
---|
10 | d-i partman/choose_partition select finish
|
---|
11 | d-i partman/confirm boolean true
|
---|
12 | d-i partman/confirm_nooverwrite boolean true
|
---|
13 |
|
---|
14 | # Locale
|
---|
15 | d-i debian-installer/locale string @@VBOX_INSERT_LOCALE@@
|
---|
16 | d-i console-setup/ask_detect boolean false
|
---|
17 | d-i console-setup/layoutcode string us
|
---|
18 | d-i keyboard-configuration/xkb-keymap select us
|
---|
19 |
|
---|
20 | # Network
|
---|
21 | d-i netcfg/get_hostname string @@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN@@
|
---|
22 | d-i netcfg/get_domain string @@VBOX_INSERT_HOSTNAME_DOMAIN@@
|
---|
23 | d-i netcfg/choose_interface select auto
|
---|
24 |
|
---|
25 | # Clock
|
---|
26 | @@VBOX_COND_IS_RTC_USING_UTC@@
|
---|
27 | d-i clock-setup/utc-auto boolean true
|
---|
28 | d-i clock-setup/utc boolean true
|
---|
29 | @@VBOX_COND_END@@
|
---|
30 | @@VBOX_COND_IS_NOT_RTC_USING_UTC@@
|
---|
31 | d-i clock-setup/utc-auto boolean false
|
---|
32 | d-i clock-setup/utc boolean false
|
---|
33 | @@VBOX_COND_END@@
|
---|
34 | d-i time/zone string @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
35 | @@VBOX_COND_IS_INSTALLING_ADDITIONS@@d-i clock-setup/ntp boolean false@@VBOX_COND_END@@
|
---|
36 | @@VBOX_COND_IS_NOT_INSTALLING_ADDITIONS@@d-i clock-setup/ntp boolean true@@VBOX_COND_END@@
|
---|
37 |
|
---|
38 | # Packages, Mirrors, Image
|
---|
39 | d-i base-installer/kernel/override-image string linux-server
|
---|
40 | d-i base-installer/kernel/override-image string linux-image-amd64
|
---|
41 | d-i pkgsel/install-language-support boolean false
|
---|
42 |
|
---|
43 | @@VBOX_COND_AVOID_UPDATES_OVER_NETWORK@@
|
---|
44 | d-i apt-setup/use_mirror boolean false
|
---|
45 | d-i apt-setup/services-select multiselect updates
|
---|
46 | d-i netcfg/no_default_route true
|
---|
47 | d-i netcfg/get_nameservers ""
|
---|
48 | @@VBOX_COND_END@@
|
---|
49 |
|
---|
50 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
51 | d-i apt-setup/restricted boolean true
|
---|
52 | d-i apt-setup/universe boolean true
|
---|
53 | @@VBOX_COND_END@@@@VBOX_COND_IS_MINIMAL_INSTALLATION@@
|
---|
54 | tasksel tasksel/first multiselect minimal
|
---|
55 | d-i pkgsel/include string openssh-server
|
---|
56 | d-i pkgsel/upgrade select none
|
---|
57 | @@VBOX_COND_END@@
|
---|
58 |
|
---|
59 | # Users
|
---|
60 | d-i passwd/user-fullname string @@VBOX_INSERT_USER_FULL_NAME@@
|
---|
61 | d-i passwd/username string @@VBOX_INSERT_USER_LOGIN@@
|
---|
62 | d-i passwd/user-password password @@VBOX_INSERT_USER_PASSWORD@@
|
---|
63 | d-i passwd/user-password-again password @@VBOX_INSERT_USER_PASSWORD@@
|
---|
64 | d-i passwd/root-login boolean true
|
---|
65 | d-i passwd/root-password password @@VBOX_INSERT_ROOT_PASSWORD@@
|
---|
66 | d-i passwd/root-password-again password @@VBOX_INSERT_ROOT_PASSWORD@@
|
---|
67 | d-i user-setup/allow-password-weak boolean true
|
---|
68 | d-i passwd/user-default-groups string admin
|
---|
69 |
|
---|
70 | # Grub
|
---|
71 | d-i grub-installer/grub2_instead_of_grub_legacy boolean true
|
---|
72 | d-i grub-installer/only_debian boolean true
|
---|
73 |
|
---|
74 | # Due notably to potential USB sticks, the location of the MBR can not be
|
---|
75 | # determined safely in general, so this needs to be specified:
|
---|
76 | #d-i grub-installer/bootdev string /dev/sda
|
---|
77 | # To install to the first device (assuming it is not a USB stick):
|
---|
78 | d-i grub-installer/bootdev string default
|
---|
79 |
|
---|
80 | d-i finish-install/reboot_in_progress note
|
---|
81 |
|
---|
82 | # Custom Commands.
|
---|
83 | # Note! Debian netboot images use busybox, so no bash.
|
---|
84 | # Tell script to use target bash.
|
---|
85 | d-i preseed/late_command string cp /cdrom/vboxpostinstall.sh /target/root/vboxpostinstall.sh \
|
---|
86 | && chmod +x /target/root/vboxpostinstall.sh \
|
---|
87 | && /bin/sh /target/root/vboxpostinstall.sh --need-target-bash --preseed-late-command
|
---|