-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpreseed.cfg
31 lines (24 loc) · 1.09 KB
/
preseed.cfg
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
d-i passwd/user-fullname string hladmin
d-i passwd/username string hladmin
d-i passwd/user-password password Hashi123!
d-i passwd/user-password-again password Hashi123!
d-i user-setup/allow-password-weak boolean true
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
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 passwd/root-login boolean true
d-i passwd/root-password password Hashi123!
d-i passwd/root-password-again password Hashi123!
d-i pkgsel/include string perl open-vm-tools openssh-server ansible unzip
d-i grub-installer/only_debian boolean true
d-i preseed/late_command string \
echo 'hladmin ALL=(ALL) NOPASSWD: ALL' > /target/etc/sudoers.d/hladmin ; \
in-target chmod 440 /etc/sudoers.d/hladmin ; \
in-target mkdir -p /home/hladmin/.ssh; \
in-target chown -R hladmin:hladmin /home/hladmin/.ssh/; \
in-target rm -rf /etc/machine-id; \
in-target touch /etc/machine-id
d-i finish-install/reboot_in_progress note