[root@prod-cloudboot ~]# cat anaconda-ks.cfg
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
repo --name="Server-HighAvailability" --baseurl=file:///run/install/repo/addons/HighAvailability
repo --name="Server-ResilientStorage" --baseurl=file:///run/install/repo/addons/ResilientStorage
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=vda
# Keyboard layouts
keyboard --vckeymap=cn --xlayouts='cn'
# System language
lang zh_CN.UTF-8 --addsupport=en_US.UTF-8
# Network information
network --bootproto=dhcp --device=eth0 --ipv6=auto --activate
network --hostname=localhost.localdomain
# Root password
rootpw --iscrypted $6$QI7F.gSnDCD9/nUN$ys2Ky.OV/BzgQNX7SLS.2Aj8/X9yr0FqI5ktjYnVl6f./SU8UCHNQiRJx.Kt6eiJxIvEwb0BsO92wfM0/gWe1/
# System services
services --enabled="chronyd"
# System timezone
timezone Asia/Shanghai --isUtc
user --name=chroot --password=$6$Kyy2wd4Nlnyqtmhg$/8BzEslUgXTKbTOceHIVMP9oochJRVgcqxNgX5EkntG1tSbt.uZaGuId17tKRSsRQr2E3V2gc..110z2IXGVF. --iscrypted --gecos="chroot"
# X Window System configuration information
xconfig --startxonboot
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda
# Partition clearing information
clearpart --none --initlabel
# Disk partitioning information
part /boot --fstype="ext4" --ondisk=vda --size=512
part pv.398 --fstype="lvmpv" --ondisk=vda --size=90116
volgroup rootvg --pesize=4096 pv.398
logvol swap --fstype="swap" --size=8192 --name=swap --vgname=rootvg
logvol /opt --fstype="ext4" --size=10240 --name=opt --vgname=rootvg
logvol /usr --fstype="ext4" --size=20480 --name=usr --vgname=rootvg
logvol /tmp --fstype="ext4" --size=10240 --name=tmp --vgname=rootvg
logvol / --fstype="ext4" --size=10240 --name=root --vgname=rootvg
logvol /home --fstype="ext4" --size=10240 --name=home --vgname=rootvg
logvol /var --fstype="ext4" --size=20480 --name=var --vgname=rootvg
%packages
@^graphical-server-environment
@base
@compat-libraries
@core
@desktop-debugging
@development
@dial-up
@fonts
@gnome-desktop
@guest-agents
@guest-desktop-agents
@hardware-monitoring
@input-methods
@internet-browser
@java-platform
@multimedia
@performance
@print-client
@x11
chrony
kexec-tools
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end
[root@prod-cloudboot ~]#