-
Notifications
You must be signed in to change notification settings - Fork 0
/
preseed.cfg.erb
93 lines (86 loc) · 3.94 KB
/
preseed.cfg.erb
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
# -*- coding: utf-8; mode: preseed -*-
#_preseed_V1
d-i debian-installer/locale string en_US.UTF-8
d-i console-setup/ask_detect boolean false
d-i console-setup/detect detect-keyboard us:dvorak
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/variantcode string dvorak
d-i keyboard-configuration/xkb-keymap select us(dvorak)
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string <%= options.name %>
d-i netcfg/get_domain string <%= vm_install_options['domain'] %>
d-i netcfg/wireless_wep string
d-i hw-detect/load_firmware boolean false
d-i mirror/suite string <%= vm_install_preset_options['suite'] %>
d-i mirror/country string manual
<% if options.preset =~ /debian/ %>
d-i mirror/protocol select https
d-i mirror/https/hostname string deb.debian.org
d-i mirror/https/directory string /debian
d-i mirror/https/proxy string
d-i apt-setup/security_host string deb.debian.org
<% end %>
<% if options.preset =~ /ubuntu/ %>
# Ubuntu doesn't do https https://bugs.launchpad.net/ubuntu/+bug/1464064
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/mirror select archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
<% end %>
d-i passwd/root-login boolean false
d-i passwd/user-fullname string Kenyon Ralph
d-i passwd/username string kenyon
# mkpasswd --method=sha-512 <password>
d-i passwd/user-password-crypted password $6$73Q3R90Pa7X$SQMykofsIwm493F8Jyd5GqXTj5PY3r7RhOnj1rbYd1Y.Ub5zhtzzsQOKqGVijEXPiohRec6y2hueycdXcOr260
d-i clock-setup/utc boolean true
d-i time/zone string US/Pacific
d-i clock-setup/ntp boolean true
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman-auto/expert_recipe string \
allone :: \
1 1 1 free \
$bios_boot{ } \
method{ biosgrub } \
. \
538 538 1075 fat32 \
$primary{ } \
method{ efi } \
format{ } \
. \
1000 2000 -1 $default_filesystem \
$primary{ } \
$bootable{ } \
method{ format } \
format{ } \
use_filesystem{ } \
$default_filesystem{ } \
mountpoint{ / } \
. \
100 512 1000 linux-swap \
method{ swap } \
format{ } \
.
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
tasksel tasksel/first multiselect
d-i pkgsel/include string ssh wget etckeeper aptitude python3-apt ruby qemu-guest-agent
pkgsel pkgsel/update-policy select unattended-upgrades
d-i pkgsel/upgrade select full-upgrade
popularity-contest popularity-contest/participate boolean true
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string default
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string \
in-target mkdir --mode=0700 /home/kenyon/.ssh; \
in-target chown kenyon: /home/kenyon/.ssh; \
in-target wget --output-document=/home/kenyon/.ssh/authorized_keys https://gitlab.com/kenyon.keys; \
in-target chmod 0600 /home/kenyon/.ssh/authorized_keys; \
in-target chown kenyon: /home/kenyon/.ssh/authorized_keys;