本配置是基于system-config-kickstart软件配置并加入自己lvm分区的例子,基于ipv6地址的http源及UEFI+GPT模式的BIOS,ISO源为CentOS 7 1810 minimal
以下为ks.cfg文本:
#platform=x86, AMD64, 或 Intel EM64T
#version=DEVEL
Install OS instead of upgrade
install
Keyboard layouts
keyboard 'us'
Root password
rootpw --iscrypted $1$KDsy/krS$rZJ8DRoA5HvbVVwn6MAua/
Use network installation
System language
lang zh_CN
System authorization information
auth --useshadow --passalgo=sha512
Use graphical install
#graphical
Use text mode install
text
firstboot --disable
SELinux configuration
selinux --disabled
Do not configure the X Window System
skipx
Firewall configuration
firewall --disabled
Reboot after installation
reboot
System timezone
timezone Asia/Hong_Kong --isUtc
System bootloader configuration
bootloader --location=mbr
Clear the Master Boot Record
zerombr
Partition clearing information
clearpart --all --initlabel
partd disk
part /boot/efi --fstype efi --size 200 --asprimary --ondisk sda
part /boot --fstype xfs --size 500 --ondisk sda
#part swap --size 2048 --ondisk sda
part pv.01 --size=1 --grow
volgroup centos pv.01
logvol / --vgname=centos --size=10240 --name=lv_root
logvol swap --vgname=centos --size=2048 --name=lv_swap
标签:Use,kickstart,centos,cfg,System,swap,configuration,size
来源: https://blog.51cto.com/taoyeno1/2433728