anaconda-ks.cfg

  • 手动安装centos-7.3 生成的ks文件;
anaconda-ks.cfg
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
 
# Network information
network  --bootproto=static --device=ens33 --gateway=10.1.1.254 --ip=10.1.1.200 --netmask=255.255.255.0 --ipv6=auto --activate
network  --hostname=localhost.localdomain
 
# Root password
rootpw --iscrypted $6$ovawAvMzqXg0OOpL$x7Rx/HDdkvoIrb1EXagG86x34W9qjg1SSbMelmKv7X25Vqh9.xl8SvSlUI3dVuNxB1PeyWEF64u2eKkmz7ZbV1
# System services
services --disabled="chronyd"
# System timezone
timezone Asia/Shanghai --isUtc --nontp --ntpservers=0.centos.pool.ntp.org,1.centos.pool.ntp.org,2.centos.pool.ntp.org,3.centos.pool.ntp.org
user --groups=wheel --name=bbders --password=$6$bvu.YWjPNMTQcvCY$2m6lP2flQexs5R1bAJ2pC/L2rg.RZiNE9YanG9TEUdaDlNitT7q8CGtNnPQ7hy1HRHuAFukzUCQYUtLMiACJx. --iscrypted --gecos="bbders"
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm
# Partition clearing information
clearpart --all --initlabel --drives=sda
 
%packages
@^minimal
@compat-libraries
@core
@development
 
%end
 
%addon com_redhat_kdump --disable --reserve-mb='auto'
 
%end
 
%anaconda
pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --notempty
%end
  • linux/os_provision/anaconda-ks.cfg.txt
  • 最后更改: 2019/04/16 18:31
  • (外部编辑)