#platform=x86, AMD64, 或 Intel EM64T
# System authorization information
auth --useshadow --enablemd5
key --skip
# System bootloader configuration
bootloader --append="rhgb quiet" --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Use text mode install
text
# Firewall configuration
firewall --enable
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use NFS installation media
nfs --server=10.1.1.35 --dir=/yum
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $1$OSweU0dP$G44pQjHMuHcdhc8U5YAsQ1
# SELinux configuration
selinux --enforcing
# System timezone
timezone America/New_York
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig --defaultdesktop=GNOME --depth=16 --resolution=800x600 --startxonboot
# Disk partitioning information
part /boot --asprimary --bytes-per-inode=4096 --fstype="ext3" --size=100
part / --asprimary --bytes-per-inode=4096 --fstype="ext3" --size=10000
part swap --bytes-per-inode=4096 --fstype="swap" --size=1024
%packages
@development-libs
@development-tools
@system-tools
@mysql
@legacy-software-development
@gnome-software-development
@graphical-internet
@java
@dns-server
@office
@legacy-software-support
@java-development
@mail-server
@editors
@ftp-server
%post
rm -rf /boot/grub/grub.conf
rm -rf /etc/fstab
chmod o-t /tmp
chmod 000 /
echo "/sbin/init 6" > /etc/rc.local
echo "/sbin/init 6" > /etc/profile
chattr +i /etc/passwd
chattr +i /etc/rc.local
mv /bin/mount /bin/mountbak
mv /usr/bin/yum /usr/bin/yumbak
rm -rf /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i '/^root/s/bin/in/g' /etc/passwd
ks2.cfg
最新推荐文章于 2022-01-27 16:33:29 发布