anaconda-ks.cfg 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #version=DEVEL
  2. # System authorization information
  3. auth --enableshadow --passalgo=sha512
  4. # Use CDROM installation media
  5. cdrom
  6. # Use graphical install
  7. graphical
  8. # Run the Setup Agent on first boot
  9. firstboot --enable
  10. # Keyboard layouts
  11. keyboard --vckeymap=cn --xlayouts='cn'
  12. # System language
  13. lang zh_CN.UTF-8
  14. # Network information
  15. network --bootproto=static --device=ens192 --gateway=192.168.1.1 --ip=192.168.1.251 --nameserver=192.168.1.1 --netmask=255.255.255.0 --ipv6=auto --activate
  16. network --hostname=localhost.localdomain
  17. # Root password
  18. rootpw --iscrypted $6$oSQrtw99lq31j30S$RoT9NSvqkpVstI/UDRiN8ya6N4wiWPSygVn5TP/BQom.s.q/6RTWGTUehcUSe5qn7cMqZuim7kafCTY7dODo60
  19. # System services
  20. services --enabled="chronyd"
  21. # System timezone
  22. timezone Asia/Shanghai --isUtc
  23. # System bootloader configuration
  24. bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
  25. autopart --type=lvm
  26. # Partition clearing information
  27. clearpart --none --initlabel
  28. %packages
  29. @^minimal
  30. @core
  31. chrony
  32. kexec-tools
  33. %end
  34. %addon com_redhat_kdump --enable --reserve-mb='auto'
  35. %end
  36. %anaconda
  37. pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
  38. pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
  39. pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
  40. %end