blob: 9dd5ebeb861f54a255c278235dda0712ab388860 [file] [log] [blame]
azvyagintsev9a1737f2019-03-11 15:44:54 +02001# Mirror settings
2
3# Configure part of mirroring via passed bootcmdline
4d-i mirror/protocol string http
5#d-i mirror/http/hostname string mirror.mirantis.com
6#d-i mirror/http/directory string testing/ubuntu
7
8d-i mirror/country string manual
9d-i apt-setup/use_mirror boolean true
10d-i mirror/http/proxy string
11
12d-i apt-setup/backports boolean false
13d-i base-installer/install-recommends boolean false
14d-i console-setup/ask_detect boolean false
15d-i console-setup/console-setup/layoutcode string us
16d-i console-setup/modelcode string pc105
17d-i keyboard-configuration/layout string USA
18d-i keyboard-configuration/variant string USA
19
20d-i debian-installer/locale string en_US
21d-i debian-installer/language string en
22d-i debian-installer/country EN
23
24d-i pkgsel/install-language-support boolean false
25
26d-i debian-installer/framebuffer boolean false
27d-i debconf/frontend select noninteractive
28#d-i base-installer/kernel/image string linux-hwe
29d-i base-installer/kernel/override-image string linux-server
30d-i clock-setup/utc boolean true
31d-i clock-setup/utc-auto boolean true
32d-i finish-install/reboot_in_progress note
33d-i grub-installer/only_debian boolean true
34d-i grub-installer/with_other_os boolean true
35d-i netcfg/get_domain string local
36d-i netcfg/get_hostname string ubuntu
37d-i netcfg/enable boolean true
38d-i netcfg/choose_interface select auto
39d-i hw-detect/load_firmware boolean true
40
41d-i partman-auto/disk string /dev/sda /dev/vda
42# Use LVM for partitioning
43d-i partman-auto/method string lvm
44
45# GPT
46
47d-i partman-basicfilesystems/choose_label string gpt
48d-i partman-basicfilesystems/default_label string gpt
49d-i partman-partitioning/choose_label string gpt
50d-i partman-partitioning/default_label string gpt
51d-i partman/choose_label string gpt
52d-i partman/default_label string gpt
53
54# GPT
55
56d-i partman-auto-lvm/guided_size string max
57
58# If one of the disks that are going to be automatically partitioned
59# contains an old LVM configuration, the user will normally receive a
60# warning. Preseed this away
61d-i partman-lvm/device_remove_lvm boolean true
62
63# And the same goes for the confirmation to write the lvm partitions.
64d-i partman-lvm/confirm boolean true
65
66# Really, please don't prompt me!
67d-i partman-lvm/confirm_nooverwrite boolean true
68
69d-i partman-auto/expert_recipe string \
70 vcp_lvm :: \
71 1 1 1 free \
72 $gptonly{ } \
73 $primary{ } \
74 $bios_boot{ } \
75 method{ biosgrub } \
76 . \
77 1051 2 1051 ext3 \
78 $gptonly{ } \
79 $primary{ } \
80 method{ format } format{ } \
81 use_filesystem{ } filesystem{ ext3 } \
82 lable{ lable-boot } \
83 mountpoint{ /boot } \
84 . \
85 10 10 10 ext4 \
86 $defaultignore{ } \
87 $gptonly{ } \
88 $primary{ } \
89 method{ lvm } \
90 vg_name{ vg0 } \
91 . \
92 105 2 105 ext4 \
93 $lvmok{ } \
94 in_vg{ vg0 } \
95 lv_name{ home } \
96 method{ lvm } format{ } \
97 use_filesystem{ } filesystem{ ext4 } \
98 mountpoint{ /home } \
99 options/nodev{ nodev } \
100 . \
101 105 2 105 ext4 ext4 \
102 $lvmok{ } \
103 in_vg{ vg0 } \
104 lv_name{ tmp } \
105 method{ lvm } format{ } \
106 use_filesystem{ } filesystem{ ext4 } \
107 mountpoint{ /tmp } \
108 options/nodev{ nodev } \
109 options/nosuid{ nosuid } \
110 options/noexec{ noexec } \
111 . \
112 105 2 105 ext4 \
113 $lvmok{ } \
114 in_vg{ vg0 } \
115 lv_name{ var_log } \
116 method{ format } format{ } \
117 use_filesystem{ } filesystem{ ext4 } \
118 mountpoint{ /var/log } \
119 options/noexec{ noexec } \
120 . \
121 315 2 315 ext4 ext4 \
122 $lvmok{ } \
123 in_vg{ vg0 } \
124 lv_name{ var_tmp } \
125 method{ format } format{ } \
126 use_filesystem{ } filesystem{ ext4 } \
127 mountpoint{ /var/tmp } \
128 options/nodev{ nodev } \
129 options/nosuid{ nosuid } \
130 options/noexec{ noexec } \
131 . \
132 105 2 105 ext4 ext4 \
133 $lvmok{ } \
134 in_vg{ vg0 } \
135 lv_name{ var_log_audit } \
136 method{ format } format{ } \
137 use_filesystem{ } filesystem{ ext4 } \
138 mountpoint{ /var/log/audit } \
139 options/noexec{ noexec } \
140 . \
141 2154 2 65536 ext4 \
142 $lvmok{ } \
143 method{ format } format{ } \
144 use_filesystem{ } filesystem{ ext4 } \
145 mountpoint{ / } \
146 in_vg{ vg0 } \
147 lv_name{ root } \
148 .
149
150d-i partman-auto/choose_recipe select vcp_lvm
151
152partman-basicfilesystems partman-basicfilesystems/no_swap boolean false
153
154# This makes partman automatically partition without confirmation, provided
155# that you told it what to do using one of the methods above.
156d-i partman-partitioning/confirm_write_new_label boolean true
157d-i partman/choose_partition select finish
158d-i partman/confirm boolean true
159d-i partman/confirm_nooverwrite boolean true
160
161d-i pkgsel/include string openssh-server
162d-i pkgsel/update-policy select none
163popularity-contest popularity-contest/participate boolean false
164
165d-i pkgsel/upgrade select safe-upgrade
166
167d-i time/zone string UTC
168d-i passwd/root-password password r00tme
169d-i passwd/root-password-again password r00tme
170d-i passwd/root-login boolean true
171d-i passwd/make-user boolean false
172d-i openssh-server/permit-root-login boolean true
173d-i user-setup/allow-password-weak boolean true
174d-i user-setup/encrypt-home boolean false
175tasksel tasksel/first multiselect minimal, ssh-server, openssh-server
176
177# in ubuntu18.04.2 netplan detect interface like enp0s3, but in reboot-ed system,
178# due init, its renames to ens3
179d-i preseed/late_command string \
180in-target sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; \
181in-target sed -i 's/enp0s3/ens3/g' /etc/netplan/01-netcfg.yaml;