temp_centos7.ks 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #version=CENTOS7
  2. # Use network installation
  3. url --url http://ip/cblr/links/centos-x86_64/
  4. # Install OS instead of upgrade
  5. install
  6. # Use text install
  7. text
  8. # SELinux configuration
  9. selinux --disabled
  10. # Firewall configuration
  11. firewall --disabled
  12. # Do not configure the X Window System
  13. skipx
  14. # Run the Setup Agent on first boot
  15. #firstboot --enable
  16. ignoredisk --only-use=sda
  17. # Keyboard layouts
  18. keyboard us
  19. # System language
  20. lang en_US
  21. # Network information
  22. network --bootproto=dhcp --device=link --onboot=on --activate
  23. # Root password
  24. rootpw --iscrypted ks_password
  25. # System services
  26. services --enabled="chronyd"
  27. # System timezone
  28. timezone --utc ks_timezone
  29. # System bootloader configuration
  30. bootloader --location=mbr --boot-drive=sda
  31. # Partition clearing information
  32. clearpart --all --initlabel --drives=sda
  33. # Clear the Master Boot Record
  34. zerombr
  35. # Disk Partitioning
  36. partition /boot/efi --asprimary --fstype=vfat --label EFI --size=200
  37. partition /boot --asprimary --fstype=ext4 --label BOOT --size=500
  38. partition / --asprimary --fstype=ext4 --label ROOT --size=4096 --grow
  39. # Reboot after installation
  40. reboot
  41. %packages
  42. @core
  43. net-tools
  44. %end
  45. %post --log=/root/ks-post.log
  46. yum groupinstall "Infiniband Support" -y
  47. yum install infiniband-diags perftest qperf -y
  48. %end