Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version=RHEL7
  2. install
  3. # Poweroff after installation
  4. poweroff
  5. # System authorization information
  6. auth --enableshadow --passalgo=sha512
  7. # Firewall configuration
  8. firewall --enabled --service=ssh
  9. firstboot --disable
  10. ignoredisk --only-use=vda
  11. # Keyboard layouts
  12. # old format: keyboard us
  13. # new format:
  14. keyboard --vckeymap=us --xlayouts='us'
  15. # System language
  16. lang en_US.UTF-8
  17. # Use CDROM installation media
  18. cdrom
  19. repo --name="repo0" --baseurl=http://mirrors.kernel.org/centos/7/os/x86_64 --includepkgs=python-pygments
  20. repo --name="repo1" --baseurl=http://mirrors.kernel.org/centos/7/updates/x86_64 --includepkgs=python-pygments
  21. repo --name="repo2" --baseurl=http://mirrors.kernel.org/centos/7/extras/x86_64
  22. repo --name="repo3" --baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/20/Everything/x86_64/os/ --includepkgs=python-oauth
  23. # Network information
  24. network  --bootproto=dhcp --device=eth0 --onboot=on
  25. # System bootloader configuration
  26. bootloader --append="console=ttyS0,115200n8 console=tty0" --location=mbr --driveorder="vda" --timeout=1
  27. # Root password
  28. rootpw --iscrypted $6$t2Z9MAeaGuunAD.s$xmrxsB7OSngNTb3RIZLI3ICSbXCQ9qrR7rWByaOfBKsWMOEO9ENXmcHcG3pd026Mc6Q4sGrNHf0X2NysRTm1S/
  29. selinux --enforcing
  30. services --disabled="kdump" --enabled="network,sshd,rsyslog,chronyd"
  31. timezone UTC --isUtc
  32. # Disk
  33. zerombr
  34. clearpart --all --initlabel
  35. part / --fstype="ext4" --size=3072
  36.  
  37. %post --erroronfail
  38.  
  39. # workaround anaconda requirements
  40. passwd -d root
  41. passwd -l root
  42.  
  43. # remove avahi and networkmanager
  44. echo "Removing avahi/zeroconf and NetworkManager"
  45. yum -C -y remove avahi\* Network\*
  46.  
  47. # make sure firstboot doesn't start
  48. echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
  49.  
  50. echo "Cleaning old yum repodata."
  51. yum clean all
  52.  
  53. # chance dhcp client retry/timeouts to resolve #6866
  54. cat  >> /etc/dhcp/dhclient.conf << EOF
  55.  
  56. timeout 300;
  57. retry 60;
  58. EOF
  59.  
  60. # clean up installation logs"
  61. rm -rf /var/log/yum.log
  62. rm -rf /var/lib/yum/*
  63. rm -rf /root/install.log
  64. rm -rf /root/install.log.syslog
  65. rm -rf /root/anaconda-ks.cfg
  66. rm -rf /var/log/anaconda*
  67. rm -rf /root/anac*
  68.  
  69. echo "Fixing SELinux contexts."
  70. touch /var/log/cron
  71. touch /var/log/boot.log
  72. mkdir -p /var/cache/yum
  73. /usr/sbin/fixfiles -R -a restore
  74.  
  75. # reorder console entries
  76. sed -i 's/console=tty0/console=tty0 console=ttyS0,115200n8/' /boot/grub2/grub.cfg
  77.  
  78. %end
  79.  
  80. %packages
  81. @core
  82. chrony
  83. cloud-init
  84. cloud-utils-growpart
  85. dracut-config-generic
  86. dracut-norescue
  87. efibootmgr
  88. firewalld
  89. grub2
  90. grub2-efi-modules
  91. kernel
  92. rsync
  93. tar
  94. yum-utils
  95. python-oauth
  96. -NetworkManager
  97. -aic94xx-firmware
  98. -alsa-firmware
  99. -alsa-lib
  100. -alsa-tools-firmware
  101. -iprutils
  102. -ivtv-firmware
  103. -iwl100-firmware
  104. -iwl1000-firmware
  105. -iwl105-firmware
  106. -iwl135-firmware
  107. -iwl2000-firmware
  108. -iwl2030-firmware
  109. -iwl3160-firmware
  110. -iwl3945-firmware
  111. -iwl4965-firmware
  112. -iwl5000-firmware
  113. -iwl5150-firmware
  114. -iwl6000-firmware
  115. -iwl6000g2a-firmware
  116. -iwl6000g2b-firmware
  117. -iwl6050-firmware
  118. -iwl7260-firmware
  119. -iwl7265-firmware
  120. -libertas-sd8686-firmware
  121. -libertas-sd8787-firmware
  122. -libertas-usb8388-firmware
  123. -plymouth
  124. -postfix
  125. -wpa_supplicant
  126.  
  127. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement