Linux:root下的文件-anaconda-ks.cfg详解

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

 

posted @ 2017-03-22 00:18  Spiro-k  阅读(32574)  评论(0编辑  收藏  举报