定制CentOS系统时我想让定制好的ISO文件安装时只有配置网络接口这一个交互界面在ks.cfg文件该怎么配置?
发布网友
发布时间:2022-04-13 12:33
我来回答
共1个回答
热心网友
时间:2022-04-13 14:02
比较复杂,建议用虚拟机方式测试比较方便,自己慢慢研究吧,呵呵
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use network installation
cdrom
# Root password
rootpw --iscrypted xxx
# System authorization information
auth --useshadow --passalgo=md5
# Use graphical install
graphical
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone Asia/Shanghai
# Network information
# network --bootproto=dhcp --device=eth0 --onboot=on
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --drives=sda
# Disk partitioning information
part /boot --fstype="ext4" --size=300
part swap --fstype="swap" --size=4096
part / --fstype="ext4" --grow --size=1
%packages
@base
%end