anaconda-ks.cfg詳解
系統安裝的時候生成的一個文件,通過這個文件可以修改成自動安裝的腳本,用於自動安裝同樣配置的系統.
自動生成的啟動文件anaconda
# Kickstart file automatically generated by anaconda.
版本=開發
#version=DEVEL
系統安裝途徑光盤 install
cdrom
語言和鍵盤布局
lang zh_CN.UTF-8
keyboard us
網絡配置
network --onboot no --device eth0 --bootproto dhcp --noipv6
root密碼
rootpw --iscrypted $6$5XHy/O.DtgKiMf04$5MayVZSdodEj3iwUDYBzAiGETZwuI.u8SZRF3a04vMcgQVzOnEPXz35PAKackJDRHfVUTtQYFCUGNebDaQdd./
防火牆開啟的端口
firewall --service=ssh
認證加密方式
authconfig --enableshadow --passalgo=sha512
seliunx級別信息
selinux --enforcing
時區
timezone --utc Asia/Shanghai
系統啟動引導
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --none
磁盤信息
#part /boot --fstype=ext4 --size=200
#part swap --size=2000
#part / --fstype=ext4 --grow --size=200 repo以及本地安裝包,centos網絡安裝包
repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100
%packages
@chines-support
@core
@server-policy
結束 %end