Skip to content

Instantly share code, notes, and snippets.

@hoangdh
Created March 29, 2018 10:15
Show Gist options
  • Save hoangdh/901b12e219e71dd8307043b9e51c4112 to your computer and use it in GitHub Desktop.
Save hoangdh/901b12e219e71dd8307043b9e51c4112 to your computer and use it in GitHub Desktop.
# System authorization information
auth --enableshadow --passalgo=sha512
# Use network installation
url --url="http://172.16.1.1/images/centos7_x64"
# Install/upgrade in graphic/text mode
install
graphical
# Configure SELinux
selinux --permissive
# Run the Setup Agent on first boot
firstboot --disable
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --hostname=pxe-example.tenten.vn
# Root password
rootpw hoangdh@gmo
# System timezone
timezone Asia/Ho_Chi_Minh --isUtc
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part / --fstype ext4 --size 1 --grow
part swap --fstype swap --recommend
part /home --fstype ext4 --size 2048
part /boot --fstype ext4 --size 512
%packages
#@compat-libraries
@core
%end
# Reboot when done
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment