-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypreseed
235 lines (208 loc) · 10.7 KB
/
mypreseed
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
#########################################################################
# !! WARNING !! #
# #
# This configuration is optimized for internal use at COMPANY #
# especially for Docker Hosts. #
# #
# !! Do not Use this configuration without review !! #
# Minimum Disk Size: 35.25GB + (Memory Size * 2) #
#########################################################################
# #
# author: Fabian Hartmann #
# contact: fabian.hartmann@bluewin.ch #
# #
#########################################################################
# LANGUAGE & COUNTRY
d-i debian-installer/language string en
d-i debian-installer/country string CH
d-i debian-installer/locale string en_GB.UTF-8
# KEYBOARD
# Disable ask for keyboard
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select ch
#d-i keyboard-configuration/layoutcode ch
# set country of keyboard origin
d-i keyboard-configuration/layout select German (Switzerland)
# set keyboard layout
d-i keyboard-configuration/variant select Switzerland - German (Switzerland, legacy)
# NETWORK
# Network autoconfiguration
d-i netcfg/choose_interface select auto
# To pick a particular interface instead:
#d-i netcfg/choose_interface select eth1
# Link detection timeout in sec (default 3)
#d-i netcfg/link_wait_timeout string 10
# DHCP Server Timeout
#d-i netcfg/dhcp_timeout string 60
#d-i netcfg/dhcpv6_timeout string 60
# Set Hostname (Hostname from DNS and DHCP overrides this setting)
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# If non-free firmware is needed for the network or other hardware, you can
# configure the installer to always try to load it, without prompting. Or
# change to false to disable asking.
d-i hw-detect/load_firmware boolean true
## USER
# Skip creation of a root account (normal user account will be able to
# use sudo). The default is false; preseed this to true if you want to set
# a root password.
d-i passwd/root-login boolean false
# To create a normal user account.
d-i passwd/user-fullname string Administrator
d-i passwd/username string administrator
# Normal user's password, either in clear text
#d-i passwd/user-password password insecure
#d-i passwd/user-password-again password insecure
# or encrypted using a crypt(3) hash.
d-i passwd/user-password-crypted password $6$AxzvOci6DcwB$99vjTNs9GEl0q05DANJngpOa114Drfgu/raJVLp9.nszdoNrtALT5K6DDb6MTsWCOfy.f8Cxy61TfJNADl2mU1
# Create the first user with the specified UID instead of the default.
#d-i passwd/user-uid string 1010
# The installer will warn about weak passwords. If you are sure you know
# what you're doing and want to override it, uncomment this.
d-i user-setup/allow-password-weak boolean true
# The user account will be added to some standard initial groups. To
# override that, use this.
#d-i passwd/user-default-groups string audio cdrom video
# Set to true if you want to encrypt the first user's home directory.
d-i user-setup/encrypt-home boolean false
## TIME
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true
# TimeZone /usr/share/zoneinfo/ for valid values.
d-i time/zone string Europe/Zurich
# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# NTP server to use. The default is almost always fine here.
#d-i clock-setup/ntp-server string pool.ntp.org
## PARTITION
# use the first SCSI/SATA hard disk
#d-i partman-auto/disk string /dev/sda
# Partiton method
d-i partman-auto/method string lvm
# disable warnings if old lvm are found
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-partition/confirm_write_new_label boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto-lvm/no_boot boolean true
d-i partman-auto-lvm/new_vg_name string lvm-disk
# Used space in LVM
#d-i partman-auto-lvm/guided_size string max
# Partitioning format
d-i partman-auto/choose_recipe select custom-lvm
# Partition MAP
d-i partman-auto/expert_recipe string \
custom-lvm :: \
1 1 1 free method{ biosgrub } . \
250 41 500 ext2 \
$primary{ } \
$bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
5000 5010 20000 ext4 \
$lvmok{ } \
lv_name{ home } \
in_vg { lvm-disk } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /home } \
. \
2000 2003 10000 ext4 \
$lvmok{ } \
lv_name{ tmp } \
in_vg { lvm-disk } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /tmp } \
. \
5000 5001 6000 ext4 \
$lvmok{ } \
lv_name{ usr } \
in_vg { lvm-disk } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /usr } \
. \
1000 1002 3000 ext4 \
$lvmok{ } \
lv_name{ srv } \
n_vg { lvm-disk } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /srv } \
. \
4000 4004 5000 ext4 \
$lvmok{ } \
lv_name{ opt } \
in_vg { lvm-disk } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /opt } \
. \
10000 10060 -1 ext4 \
$lvmok{ } \
lv_name{ var } \
in_vg { lvm-disk } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /var } \
. \
8000 8010 10000 ext4 \
$lvmok{ } \
lv_name{ root } \
in_vg { lvm-disk } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
64 512 200% linux-swap \
$lvmok{ } \
lv_name{ swap } \
in_vg { lvm-disk } \
method{ swap } format{ } \
.
# Change the default FS
d-i partman/default_filesystem string ext4
# Make sure no confirmation is needed
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
# The default is to mount by UUID, but you can also choose "traditional" to
# use traditional device names, or "label" to try filesystem labels before
# falling back to UUIDs.
d-i partman/mount_style select uuid
## APT & INSTALL SOFTWARE
# Installer Mirror Settings
d-i mirror/http/mirror select CH.archive.ubuntu.com
# Suite to install.
d-i mirror/suite string xenial
# Suite to use for loading installer components
d-i mirror/udeb/suite string xenial
# Components to use for loading installer components
d-i mirror/udeb/components multiselect main, restricted
#tasksel tasksel/first multiselect ubuntu-server
#tasksel tasksel/first multiselect server, openssh-server
#d-i base-installer/kernel/override-image string linux-server
#d-i base-installer/kernel/override-image string linux-image-amd64
#d-i pkgsel/include string openssh-server update-motd
d-i base-installer/kernel/image string linux-virtual
d-i tasksel/first select openssh-server
# Install aditional Software
d-i pkgsel/include string openssh-server nfs-common wget ntp vim
# Install Security Updates
d-i pkgsel/update-policy select unattended-upgrades
# Disable App USage Feedback to ubuntu
popularity-contest popularity-contest/participate boolean false
# Update system locate database
d-i pkgsel/updatedb boolean true
# COMPLETE INSTALL
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
# Eject CD afther reboot
d-i cdrom-detect/eject boolean true