CentOS 7 kickstart脚本

 
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Install OS instead of upgrade
install
# Keyboard layouts
keyboard 'us'# Reboot after installation
reboot
# Root password
rootpw --iscrypted $1$Zj.QV4EB$HPirO1GujsMOyAt6I0Hcr.
# System timezone
timezone Asia/Shanghai
# System language
lang en_US
# Firewall configuration
firewall --disabled
# System authorization information
auth  --useshadow  --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel 
# Disk partitioning information
part /boot --asprimary --fstype="ext4" --size=2000
part swap --fstype="swap" --size=2048
part / --fstype="ext4" --grow --size=1
%packages 
@base 
@core 
@development 
@hardware-monitoring 
@performance 
@remote-system-management 
%end

发表评论

滚动至顶部