-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreseed.cfg
executable file
·120 lines (120 loc) · 4.08 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
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
#Принять лицензию
astra-license astra-license/license boolean true
#
#Автоматический выбор сетевого интерфейса
d-i netcfg/choose_interface select auto
#
# при обнаружении DHCP требует ввести в каком домене будет АРМ, ввести нужный домен
d-i netcfg/get_domain string test.ipa
#
#Локаль и язык
d-i debian-installer/locale string ru_RU
d-i debian-installer/locale select ru_RU.UTF-8
d-i debian-installer/language string ru
d-i debian-installer/country string RU
d-i debian-installer/keymap string ru
d-i localechooser/languagelist select ru
d-i localechooser/shortlist select RU
#
# Выбор клавиатуры
d-i console-tools/archs select at
d-i console-keymaps-at/keymap select ru
d-i console-setup/toggle string Alt+Shift
d-i console-setup/layoutcode string ru
d-i keyboard-configuration/toggle select Alt+Shift
d-i keyboard-configuration/layoutcode string ru
d-i keyboard-configuration/xkb-keymap select us
d-i languagechooser/language-name-fb select Russian
d-i countrychooser/country-name select Russia
#
# Временная зона
d-i time/zone string Europe/Moscow
#
# Автоматическая разметка дисков
d-i partman-auto/disk string /dev/sda
d-i partman-efi/non_efi_system boolean false
d-i partman-auto/method string lvm
d-i partman-auto-lvm/new_vg_name string astra_consulting
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-auto-lvm/guided_size string 80%
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 partman-auto/expert_recipe string \
custom :: \
1024 30 1024 ext2 \
$primary{ } \
$bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext2 } \
mountpoint{ /boot } \
. \
40000 30 40000 ext4 \
$lvmok{ } lv_name{ root } \
in_vg { astra_consulting } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
8192 30 8192 linux-swap \
$lvmok{ } lv_name{ swap } \
in_vg { astra_consulting } \
method{ swap } format{ } \
. \
1024 1025 -1 ext4 \
$lvmok{ } lv_name{ home } \
in_vg { astra_consulting } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /home } \
.
#
#Установка дополнительных модулей ядра
d-i anna/no_kernel_modules boolean true
#
#Выбор ядра
d-i base-installer/kernel/image select linux-6.1-generic
#
# Имя пользователя
d-i passwd/username string rfalhw
#
# Пароль пользователя
d-i passwd/user-password password 12345678
d-i passwd/user-password-again password 12345678
#
# Выбор ПО
d-i tasksel/first multiselect Base, Fly, Internet, Office, Multimedia
#
# Samba WINS dhcp
d-i samba-common/dhcp string false
#
d-i mirror/country string manual
d-i mirror/http/hostname string 192.168.31.97
d-i mirror/http/directory string /images/alse175
d-i mirror/http/proxy string
#
# Уровень защищённости
d-i astra-additional-setup/os-check select Advanced security level Voronezh
#
# Дополнительные настройки уровня защищённости
d-i astra-additional-setup/additional-settings-voronezh multiselect Enable Mandatory Integrity Control, Disable ptrace capability
#
dictionaries-common dictionaries-common/selecting_ispell_wordlist_default note
#
# Установка загрузчика GRUB
d-i grub-installer/only_debian boolean true
#
# Установка пароля GRUB
d-i grub-installer/password password 12345678
d-i grub-installer/password-again password 12345678
#
# Не показывать диалог окончания установки
d-i finish-install/reboot_in_progress note
#
# Копирование postinstall
d-i preseed/late_command string in-target bash -c "/usr/bin/wget -O /tmp/postinstall.sh http://192.168.31.97/scripts/postinstall.sh";\
# Запуск postinstall
in-target bash -c "/bin/sh -x /tmp/postinstall.sh"