summaryrefslogtreecommitdiffstats
path: root/http/ubuntu/preseed.cfg
blob: a92d0dc90631aa46b938e2f914552037dc3f0026 (plain) (blame)
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
d-i debian-installer/locale string en_US
d-i time/zone string Europe/Berlin
d-i keyboard-configuration/xkb-keymap select de

d-i mirror/country string de

d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-basicfilesystems/no_swap boolean false
d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/default_label string gpt
d-i partman/choose_label string gpt
d-i partman/default_label string gpt
d-i partman-swapfile/size string 0
d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string \
  scheme ::                           \
    32 32 32 free                     \
      $gptonly{ }                     \
      $primary{ }                     \
      $bios_boot{ }                   \
      method{ biosgrub } .            \
    1 0 -1 xfs                        \
      $gptonly{ }                     \
      $primary{ }                     \
      method{ format }                \
      format{ }                       \
      use_filesystem{ }               \
      filesystem{ xfs }               \
      label{ SLX_SYS }                \
      mountpoint{ / } .
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

d-i base-installer/excludes string laptop-detect
d-i passwd/make-user boolean false
d-i passwd/root-login boolean true
d-i user-setup/allow-password-weak boolean true

## install base packages ##
d-i pkgsel/include string curl openssh-server ansible
d-i preseed/early_command string                                                                                                                \
        mkdir -p /usr/lib/post-base-installer.d &&                                                                                              \
        echo "sed -i -e 's/^in-target.*tasksel.*/#\\0/' /var/lib/dpkg/info/pkgsel.postinst" > /usr/lib/post-base-installer.d/90skip-tasksel &&  \
        chmod +x /usr/lib/post-base-installer.d/90skip-tasksel

d-i preseed/late_command string \
	in-target sed -i 's,^[# \t]*PermitRootLogin.*,PermitRootLogin yes,' /etc/ssh/sshd_config ; \
	in-target apt-get update ; \
	in-target apt-get -y upgrade

d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true

d-i finish-install/reboot_in_progress note