1. [root@prod-cloudboot ~]# cat anaconda-ks.cfg
    2. #version=DEVEL
    3. # System authorization information
    4. auth --enableshadow --passalgo=sha512
    5. repo --name="Server-HighAvailability" --baseurl=file:///run/install/repo/addons/HighAvailability
    6. repo --name="Server-ResilientStorage" --baseurl=file:///run/install/repo/addons/ResilientStorage
    7. # Use CDROM installation media
    8. cdrom
    9. # Use graphical install
    10. graphical
    11. # Run the Setup Agent on first boot
    12. firstboot --enable
    13. ignoredisk --only-use=vda
    14. # Keyboard layouts
    15. keyboard --vckeymap=cn --xlayouts='cn'
    16. # System language
    17. lang zh_CN.UTF-8 --addsupport=en_US.UTF-8
    18. # Network information
    19. network --bootproto=dhcp --device=eth0 --ipv6=auto --activate
    20. network --hostname=localhost.localdomain
    21. # Root password
    22. rootpw --iscrypted $6$QI7F.gSnDCD9/nUN$ys2Ky.OV/BzgQNX7SLS.2Aj8/X9yr0FqI5ktjYnVl6f./SU8UCHNQiRJx.Kt6eiJxIvEwb0BsO92wfM0/gWe1/
    23. # System services
    24. services --enabled="chronyd"
    25. # System timezone
    26. timezone Asia/Shanghai --isUtc
    27. user --name=chroot --password=$6$Kyy2wd4Nlnyqtmhg$/8BzEslUgXTKbTOceHIVMP9oochJRVgcqxNgX5EkntG1tSbt.uZaGuId17tKRSsRQr2E3V2gc..110z2IXGVF. --iscrypted --gecos="chroot"
    28. # X Window System configuration information
    29. xconfig --startxonboot
    30. # System bootloader configuration
    31. bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda
    32. # Partition clearing information
    33. clearpart --none --initlabel
    34. # Disk partitioning information
    35. part /boot --fstype="ext4" --ondisk=vda --size=512
    36. part pv.398 --fstype="lvmpv" --ondisk=vda --size=90116
    37. volgroup rootvg --pesize=4096 pv.398
    38. logvol swap --fstype="swap" --size=8192 --name=swap --vgname=rootvg
    39. logvol /opt --fstype="ext4" --size=10240 --name=opt --vgname=rootvg
    40. logvol /usr --fstype="ext4" --size=20480 --name=usr --vgname=rootvg
    41. logvol /tmp --fstype="ext4" --size=10240 --name=tmp --vgname=rootvg
    42. logvol / --fstype="ext4" --size=10240 --name=root --vgname=rootvg
    43. logvol /home --fstype="ext4" --size=10240 --name=home --vgname=rootvg
    44. logvol /var --fstype="ext4" --size=20480 --name=var --vgname=rootvg
    45. %packages
    46. @^graphical-server-environment
    47. @base
    48. @compat-libraries
    49. @core
    50. @desktop-debugging
    51. @development
    52. @dial-up
    53. @fonts
    54. @gnome-desktop
    55. @guest-agents
    56. @guest-desktop-agents
    57. @hardware-monitoring
    58. @input-methods
    59. @internet-browser
    60. @java-platform
    61. @multimedia
    62. @performance
    63. @print-client
    64. @x11
    65. chrony
    66. kexec-tools
    67. %end
    68. %addon com_redhat_kdump --enable --reserve-mb='auto'
    69. %end
    70. %anaconda
    71. pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
    72. pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
    73. pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
    74. %end
    75. [root@prod-cloudboot ~]#