ks配置文件
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 #platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Install OS instead of upgrade
install
# Keyboard layouts
keyboard 'us'
# Root password
rootpw --iscrypted $1$r0j7J8do$6s.KsKdryTwdvH9ycyY/M/
# System language
lang en_US
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical install
text
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# Firewall configuration
firewall --disabled
# Network information
network --bootproto=dhcp --device=ens192
# Halt after installation
halt
# System timezone
timezone Asia/Shanghai
# Use network installation
url --url="ftp://192.168.100.20/source"
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all
# Disk partitioning information
part swap --fstype="swap" --size=4096
part /boot --fstype="xfs" --size=512
part / --fstype="xfs" --grow --size=1
# What to do after installation
reboot
%packages
@core
net-tools*
chrony*
lldpad*
kexec-tools*
expect*
tuned*
pciutils*
wget*
%end
%post
rm -rf /etc/yum.repos.d/C*
wget -O /etc/yum.repos.d/local.repo ftp://192.168.11.10/centos/local.repo
yum clean all
yum makecache
wget -O /home/info.csv ftp://192.168.11.10/info.csv
wget -O /home/script.sh ftp://192.168.11.10/script.sh
%end
阅读剩余
版权声明:
作者:jon
链接:https://www.linux18.cn/?p=235
文章版权归作者所有,未经允许请勿转载。
THE END