CentOS7 ks文件

#version=DEVEL

# System authorization information

auth --enableshadow --passalgo=sha512

# Use CDROM installation media

url --url=$tree

# Use graphical install

text

reboot

firewall --disabled

install

# Run the Setup Agent on first boot

firstboot --disable

ignoredisk --only-use=sda

# Keyboard layouts

keyboard us

# System language

lang en_US.UTF-8

# Network information

network  --bootproto=dhcp --device=em1 --ipv6=auto --activate

network  --bootproto=dhcp --device=em2 --onboot=off --ipv6=auto

network  --bootproto=dhcp --device=em3 --onboot=off --ipv6=auto

network  --bootproto=dhcp --device=em4 --onboot=off --ipv6=auto

#network  --hostname=localhost.localdomain

# Root password

rootpw --iscrypted $default_password_crypted

# System services

services --disabled="chronyd"

# System timezone

timezone Asia/Shanghai --isUtc

# System bootloader configuration

bootloader --location=mbr

# Partition clearing information

clearpart --all --initlabel --drives=sda

# Disk partitioning information

part / --fstype="xfs" --ondisk=sda --grow --size=1

#part swap --fstype="swap" --ondisk=sda --size=1024

part swap --label=swap --hibernation

part /boot --fstype="xfs" --ondisk=sda --size=500

%packages

@^minimal

@base

@core

@development

@hardware-monitoring

@performance

@remote-system-management

%end

%post

systemctl disable NetworkManager

systemctl disable firewalld

sed -i 's#^SELINUX.*#SELINUX=disabled#g' /etc/selinux/config

%end

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容