-
Notifications
You must be signed in to change notification settings - Fork 0
/
preseed-raid1.cfg
150 lines (143 loc) · 6.91 KB
/
preseed-raid1.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
d-i debian-installer/language string C
d-i debian-installer/country string US
d-i debian-installer/locale string C
d-i localechooser/supported-locales multiselect C
d-i keyboard-configuration/xkb-keymap select us
d-i keyboard-configuration/toggle select Control+Shift
d-i keyboard-configuration/optionscode string grp:ctrl_shift_toggle,grp_led:scroll
d-i netcfg/choose_interface select auto
d-i passwd/user-fullname string Debian User
d-i passwd/username string user
d-i passwd/user-password password -
d-i passwd/user-password-again password -
d-i passwd/root-password password -
d-i passwd/root-password-again password -
d-i mirror/country string us
d-i mirror/http/hostname string deb.debian.org
d-i mirror/http/directory string /debian
d-i clock-setup/utc boolean false
d-i time/zone string UTC
d-i clock-setup/ntp boolean true
partman-basicfilesystems partman-basicfilesystems/no_swap boolean false
d-i partman/early_command string \
mdadm -C /dev/md0 -R -n2 -l1 -e1.0 /dev/sda /dev/sdb
d-i partman/confirm boolean true
d-i partman-md/confirm boolean true
d-i partman-lvm/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman/choose_partition select finish
d-i partman-efi/non_efi_system boolean true
d-i partman-auto-lvm/no_boot boolean true
d-i partman-auto-lvm/new_vg_name string sys
d-i partman-auto/disk string /dev/md0
d-i partman-auto/method string lvm
d-i partman-auto/expert_recipe \
string partman-auto/text/multi_scheme :: \
\
16 32 64 vfat \
$primary{ } \
method{ efi } \
format{ } \
. \
1 1 -1 lvm \
$defaultignore{ } \
$primary{ } \
method{ lvm } \
. \
64 128 256 $default_filesystem \
$lvmok{ } \
$defaultignore{ } \
method{ format } \
format{ } \
use_filesystem{ } \
$default_filesystem{ } \
mountpoint{ /boot } \
. \
16 32 64 $default_filesystem \
$lvmok{ } \
$defaultignore{ } \
method{ format } \
format{ } \
use_filesystem{ } \
$default_filesystem{ } \
lv_name{ top } \
mountpoint{ / } \
. \
512 1024 2048 $default_filesystem \
$lvmok{ } \
$defaultignore{ } \
method{ format } \
format{ } \
use_filesystem{ } \
$default_filesystem{ } \
mountpoint{ /usr } \
. \
256 512 1024 $default_filesystem \
$lvmok{ } \
$defaultignore{ } \
method{ format } \
format{ } \
use_filesystem{ } \
$default_filesystem{ } \
mountpoint{ /var } \
. \
128 256 512 $default_filesystem \
$lvmok{ } \
$defaultignore{ } \
method{ format } \
format{ } \
use_filesystem{ } \
$default_filesystem{ } \
mountpoint{ /tmp } \
. \
128 256 512 $default_filesystem \
$lvmok{ } \
$defaultignore{ } \
method{ format } \
format{ } \
use_filesystem{ } \
$default_filesystem{ } \
mountpoint{ /home } \
.
d-i partman/mount_style select uuid
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/services-select multiselect security, updates
d-i apt-setup/security_host string security.debian.org
tasksel tasksel/first multiselect standard
d-i pkgsel/include string openssh-server debconf-utils vim dosfstools
popularity-contest popularity-contest/participate boolean false
d-i lilo-installer/skip boolean true
d-i grub-installer/skip boolean true
d-i grub-installer/only_debian boolean true
d-i cdrom-detect/eject boolean false
d-i grub-installer/bootdev string /dev/md0
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string chroot /target su -c '{ \
mount -vt sysfs sys /sys; \
mount -vt proc proc /proc; \
sed -i "s/\\(md_component_detection = \\)1/\\10/" \
/etc/lvm/lvm.conf; \
echo "blacklist floppy" > /etc/modprobe.d/blacklist-floppy.conf; \
update-initramfs -u; \
if [ -e /sys/firmware/efi ]; then \
apt-get -y install grub-efi; \
else \
umount -v /boot/efi; \
sfdisk --delete /dev/md0 1; \
sed -i "/\/boot\/efi/d" /etc/fstab; \
apt-get -y install grub-pc; \
fi; \
echo "(hd0) /dev/md0" > /boot/grub/device.map; \
grub-install /dev/md0; \
update-grub; \
if [ -e /sys/firmware/efi ]; then \
mkdir /boot/efi/EFI/boot; \
cp -a /boot/efi/EFI/{debian/grub,boot/boot}x64.efi; \
fi; \
} >> /var/log/preseed.log 2>&1' -