参考下面 ananconda.cfg 原生, 直接进行分区方法
#version=RHEL7 # System authorization information auth --enableshadow --passalgo=sha512 # Use CDROM installation media cdrom # Use graphical install graphical # Run the Setup Agent on first boot firstboot --enable ignoredisk --only-use=sdc # Keyboard layouts keyboard --vckeymap=cn --xlayouts='cn' # System language lang zh_CN.UTF-8 # Network information network --bootproto=dhcp --device=em1 --onboot=off --ipv6=auto network --bootproto=dhcp --device=em2 --onboot=off --ipv6=auto network --hostname=localhost.localdomain # Root password rootpw --iscrypted $6$0ZzjObEc6uDUkEH8$sx9urpyhnzSzSL3S5ggSBgbiqxmB/vP3.xq8UFc95sMFqjTxpQFzBGYL8bHbiMCCULJ8E3dPKmDUz4WHHh9/P1 # System timezone timezone Asia/Shanghai --isUtc # System bootloader configuration bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sdc # Partition clearing information clearpart --all --initlabel --drives=sdc # Disk partitioning information part swap --fstype="swap" --ondisk=sdc --size=14080 part / --fstype="xfs" --ondisk=sdc --size=939288 part /boot --fstype="xfs" --ondisk=sdc --size=500 %packages @core kexec-tools %end