-
Notifications
You must be signed in to change notification settings - Fork 11
/
ks.cfg.ipxe
executable file
·53 lines (47 loc) · 1.14 KB
/
ks.cfg.ipxe
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
# Install OS instead of upgrade
install
# Keyboard layouts
keyboard us
# Reboot after installation
reboot
# Root password
rootpw liyang
# System timezone
timezone --utc Asia/Shanghai
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Use network installation
url --url=http://192.168.20.147/c74
# Use USB installation
#harddrive --partition=/dev/sdb1 --dir=/c74
# System language
lang zh_CN.UTF-8
# Firewall configuration
firewall --disabled
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical install
text
firstboot --enable
ignoredisk --only-use=sda
# SELinux configuration
selinux --disabled
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --drives=sda
part /boot --fstype ext4 --size=500 --ondisk sda
part pv.01 --size 5000 --grow --ondisk sda
volgroup vg1 pv.01
logvol / --vgname=vg1 --size=10000 --name=root
logvol swap --vgname=vg1 --size=2000 --name=swap --fstype=swap
%packages
@core
%end
%post
cat > /root/tools << EOF
yum -y install wget net-tools lrzsz ftp screen
EOF
%end