-
Notifications
You must be signed in to change notification settings - Fork 0
/
preseed.txt
84 lines (73 loc) · 3.16 KB
/
preseed.txt
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
# disable Predictable Network Interface Names.
d-i debian-installer/add-kernel-opts string net.ifnames=0
d-i preseed/late_command string \
for i in 1 2 3; do \
echo "auto eth$i" >>/target/etc/network/interfaces; \
echo "iface eth$i inet manual" >>/target/etc/network/interfaces; \
done
# do not scan for another cd.
apt-cdrom-setup apt-setup/cdrom/set-double boolean true
apt-cdrom-setup apt-setup/cdrom/set-failed boolean true
apt-cdrom-setup apt-setup/cdrom/set-first boolean false
apt-cdrom-setup apt-setup/cdrom/set-next boolean false
d-i debian-installer/locale string en_US.UTF-8
d-i localechooser/supported-locales multiselect en_US.UTF-8, pt_PT.UTF-8
d-i keyboard-configuration/xkb-keymap select pt
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.pt.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Lisbon
d-i partman-basicfilesystems/no_swap boolean false
d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string \
root :: \
1 1 1 free \
$iflabel{ gpt } \
$gptonly{ } \
$primary{ } \
$bios_boot{ } \
method{ biosgrub } \
. \
100 1 100 fat32 \
$iflabel{ gpt } \
$gptonly{ } \
$primary{ } \
method{ efi } \
format{ } \
. \
1 1 -1 ext4 \
$primary{ } \
$bootable{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } \
.
d-i partman/choose_partition select finish
d-i partman/confirm_nooverwrite boolean true
d-i grub-installer/bootdev string default
d-i grub-installer/only_debian boolean true
d-i finish-install/reboot_in_progress note
# TODO check if this is required in macOS ARM64.
# also install the UEFI bootloader at /boot/efi/EFI/BOOT/BOOTX64.EFI.
# NB this is needed to support buggy systems like the HP EliteDesk 800 G2 Desktop Mini.
# NB Ubuntu 20.04 also installs BOOTX64.EFI.
# see https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_path
#d-i grub-installer/force-efi-extra-removable boolean true
d-i passwd/root-login boolean false
d-i passwd/root-password password admin
d-i passwd/root-password-again password admin
d-i passwd/user-fullname string admin
d-i passwd/username string admin
d-i passwd/user-password password admin
d-i passwd/user-password-again password admin
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
popularity-contest popularity-contest/participate boolean false
tasksel tasksel/first multiselect
d-i pkgsel/include string sudo openssh-server
d-i pkgsel/upgrade select full-upgrade
d-i pkgsel/update-policy select none