part2:配置pxe服务的无人值守安装
[root@PXE ~]# yum groupinstall "X Window System"
[root@PXE ~]# yum groupinstall Desktop
[root@PXE ~]# yum install system-config-kickstart
[root@PXE ~]# reboot
ks.cfg:
[root@PXE ~]# cat /var/www/html/ks.cfg
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use network installation
url --url="http://1.1.1.13/cdrom"
# Root password
rootpw --iscrypted $1$n1r4NOtg$MV689NVYtHDqZ1g/brRgh1
# System authorization information
auth --useshadow --passalgo=sha512
# Use text mode install
text
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --enforcing
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone --isUtc Asia/Shanghai
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part /boot --fstype="ext4" --size=200
part swap --fstype="swap" --size=1024
part / --fstype="ext4" --grow --size=1
%post
echo post >> /tmp/post.txt
%end