azvyagintsev | 9a1737f | 2019-03-11 15:44:54 +0200 | [diff] [blame] | 1 | # Mirror settings |
| 2 | |
| 3 | # Configure part of mirroring via passed bootcmdline |
| 4 | d-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 | |
| 8 | d-i mirror/country string manual |
| 9 | d-i apt-setup/use_mirror boolean true |
| 10 | d-i mirror/http/proxy string |
| 11 | |
| 12 | d-i apt-setup/backports boolean false |
| 13 | d-i base-installer/install-recommends boolean false |
| 14 | d-i console-setup/ask_detect boolean false |
| 15 | d-i console-setup/console-setup/layoutcode string us |
| 16 | d-i console-setup/modelcode string pc105 |
| 17 | d-i keyboard-configuration/layout string USA |
| 18 | d-i keyboard-configuration/variant string USA |
| 19 | |
| 20 | d-i debian-installer/locale string en_US |
| 21 | d-i debian-installer/language string en |
| 22 | d-i debian-installer/country EN |
| 23 | |
| 24 | d-i pkgsel/install-language-support boolean false |
| 25 | |
| 26 | d-i debian-installer/framebuffer boolean false |
| 27 | d-i debconf/frontend select noninteractive |
| 28 | #d-i base-installer/kernel/image string linux-hwe |
| 29 | d-i base-installer/kernel/override-image string linux-server |
| 30 | d-i clock-setup/utc boolean true |
| 31 | d-i clock-setup/utc-auto boolean true |
| 32 | d-i finish-install/reboot_in_progress note |
| 33 | d-i grub-installer/only_debian boolean true |
| 34 | d-i grub-installer/with_other_os boolean true |
| 35 | d-i netcfg/get_domain string local |
| 36 | d-i netcfg/get_hostname string ubuntu |
| 37 | d-i netcfg/enable boolean true |
| 38 | d-i netcfg/choose_interface select auto |
| 39 | d-i hw-detect/load_firmware boolean true |
| 40 | |
| 41 | d-i partman-auto/disk string /dev/sda /dev/vda |
| 42 | # Use LVM for partitioning |
| 43 | d-i partman-auto/method string lvm |
| 44 | |
| 45 | # GPT |
| 46 | |
| 47 | d-i partman-basicfilesystems/choose_label string gpt |
| 48 | d-i partman-basicfilesystems/default_label string gpt |
| 49 | d-i partman-partitioning/choose_label string gpt |
| 50 | d-i partman-partitioning/default_label string gpt |
| 51 | d-i partman/choose_label string gpt |
| 52 | d-i partman/default_label string gpt |
| 53 | |
| 54 | # GPT |
| 55 | |
| 56 | d-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 |
| 61 | d-i partman-lvm/device_remove_lvm boolean true |
| 62 | |
| 63 | # And the same goes for the confirmation to write the lvm partitions. |
| 64 | d-i partman-lvm/confirm boolean true |
| 65 | |
| 66 | # Really, please don't prompt me! |
| 67 | d-i partman-lvm/confirm_nooverwrite boolean true |
| 68 | |
| 69 | d-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 | |
| 150 | d-i partman-auto/choose_recipe select vcp_lvm |
| 151 | |
| 152 | partman-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. |
| 156 | d-i partman-partitioning/confirm_write_new_label boolean true |
| 157 | d-i partman/choose_partition select finish |
| 158 | d-i partman/confirm boolean true |
| 159 | d-i partman/confirm_nooverwrite boolean true |
| 160 | |
| 161 | d-i pkgsel/include string openssh-server |
| 162 | d-i pkgsel/update-policy select none |
| 163 | popularity-contest popularity-contest/participate boolean false |
| 164 | |
| 165 | d-i pkgsel/upgrade select safe-upgrade |
| 166 | |
| 167 | d-i time/zone string UTC |
| 168 | d-i passwd/root-password password r00tme |
| 169 | d-i passwd/root-password-again password r00tme |
| 170 | d-i passwd/root-login boolean true |
| 171 | d-i passwd/make-user boolean false |
| 172 | d-i openssh-server/permit-root-login boolean true |
| 173 | d-i user-setup/allow-password-weak boolean true |
| 174 | d-i user-setup/encrypt-home boolean false |
| 175 | tasksel 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 |
| 179 | d-i preseed/late_command string \ |
| 180 | in-target sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; \ |
| 181 | in-target sed -i 's/enp0s3/ens3/g' /etc/netplan/01-netcfg.yaml; |