lht 发表于 2013-1-28 19:11:22

kickstart 自动安装脚本

# Use network installationurl --url=http://192.168.0.160/centos5.4/i386/# Network information#network --bootproto=static --device=eth0 --gateway=192.168.0.254 --ip=192.168.0.237 --nameserver=202.96.134.133 --netmask=255.255.255.0 --onboot=on --hostname=centosnetwork --bootproto=dhcp --device=eth0 --onboot=on# Disk partitioning informationpart /boot --asprimary --bytes-per-inode=4096 --fstype=ext3 --size=256part pv.4 --size=1 --growvolgroup VolGroup00 --pesize=32768 pv.4logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=2048logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=2048logvol /home --fstype ext3 --name=home --vgname=VolGroup00 --size=512logvol /var --fstype ext3 --name=var --vgname=VolGroup00 --size=512#============================================================================#platform=x86, AMD64, or Intel 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 --ssh# Run the Setup Agent on first bootfirstboot --disable# System keyboardkeyboard us# System languagelang en_US# Installation logging levellogging --level=info#Root password: 123456rootpw --iscrypted $1$61GVGPXG$1ulqMq3.NqBiod6EqcLut0# SELinux configurationselinux --enforcing# Do not configure the X Window Systemskipx# System timezonetimezoneAsia/Chongqing# Install OS instead of upgradeinstall%packages@core@basenet-snmp
页: [1]
查看完整版本: kickstart 自动安装脚本