文件內容如下#platform=x86, AMD64, 或 英特爾 EM64T# System authorization informationauth--useshadow--enablemd5 # System bootloader configurationbootloader --location=mbr# Clear the Master Boot Recordzerombr# Partition clearing informationclearpart --all --initlabel # Use text mode installtext
# Firewall configurationfirewall --enabled# Run the Setup Agent on first bootfirstboot --disable# System keyboardkeyboard us# System languagelang en_US# Installation logging levellogging --level=info# Use NFS installation medianfs --server=192.168.1.105 --dir=/install/centos#url --url=ftp://192.168.1.1/install/rhel5///如果安裝源位於FTP
或HTTP伺服器中,則使用url配置項# Network informationnetwork --bootproto=dhcp --device=eth0 --onboot=on# Reboot after installationreboot#Root passwordrootpw --iscrypted $1$axUWZnH1$lpwb5p3.ohevddND6SYr9.# SELinux configurationselinux --enforcing# System timezonetimezone --isUtc Asia/Shanghai
# Install OS instead of upgradeinstall# X Window System configuration informationxconfig--defaultdesktop=GNOME --depth=32 --resolution=800x600# Disk partitioning informationpart /boot --bytes-per-inode=4096 --fstype="ext3" --size=100part / --bytes-per-inode=4096 --fstype="ext3" --size=7000part swap --bytes-per-inode=4096 --fstype="swap" --size=512%packages@server-cfg@gnome-desktop@admin-tools@chinese-support@system-tools