ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.254;
option subnet-mask 255.255.255.0;
# option domain-name "domain.org";
# option domain-name-servers 192.168.1.1;
option time-offset -18000; # Eastern Standard Time
filename "pxelinux.0";
next-server 192.168.1.88;
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range 192.168.0.1 192.168.0.200;
default-lease-time 21600;
max-lease-time 43200;
#host ns {
# next-server marvin.redhat.com;
# hardware ethernet 00:16:D3:07:68:27;
# fixed-address 192.168.0.88;
# }
}
cp /usr/lib/syslinux/pxelinux.0 /tftpboot
cp /光盘/p_w_picpath/pxeboot/initrd.img
cp /光盘/p_w_picpath/pxeboot/vmlinuz
mkdir /tftpboot/pxelinux.cfg
cp /光盘/isolinux/isolinux.cfg /tftpboot/pxelinux.cfg/default
prompt 1
timeout 600
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label 0
localboot 1
kernel vmlinuz
append ks=nfs:192.168.0.254:/var/ftp/pub/Kickstart/ks.cfg initrd=initrd.img
2
3 ^O09Welcome to ^O0cRed Hat Network^O09 Installer!^O07
4 ^O0a
5 .-=-. .--.
6 __ .' '. / " )
7 _ .' '. / .-. \ / .-'^O0c\^O0a
8 ( \ / .-. \ / / \ \ / / ^O0c^^O0a
9 \ `-` / \ `-' / \ `-` /
10 `-.-` '.____.' `.____.'
11 ^O07
12
13
14
15 Enter number of the Operation System you wish to install:
16
17 0 Local OS restart
18 1 Red Hat Enterprise Linux 5.4
19 [F1-Main] [F2-General] [F3-Expert] [F4-Kernel] [F5-Rescue] [F7-Snake]
保存退出
#platform=x86, AMD64, or Intel EM64T
#System language
key --skip
lang en_US
#Language modules to install
langsupport zh_CN en_SG --default=en_US
#System keyboard
keyboard us
#System mouse
mouse
#Sytem timezone
timezone Asia/Shanghai
#Root password
rootpw --iscrypted $1$0EvlSAB2$54bA8hII0o5cH04Gonjns0
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use NFS installation Media
nfs --server=192.168.0.254 --dir=/var/ftp/pub/
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --linux --initlabel
#Disk partitioning information
autopart
selinux --enforcing
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --disabled
#XWindows configuration information
xconfig --depth=16 --resolution=1024x768 --defaultdesktop=GNOME --startxonboot
#Package install information
@admin-tools
@base
@chinese-support
@core
@dialup
@editors
@gnome-desktop
@games
@graphical-internet
@graphics
@java
@legacy-software-support
@office
@printing
@sound-and-video
@text-internet
@base-x
kexec-tools
fipscheck
device-mapper-multipath
sgpio
emacs
libsane-hpaio
xorg-x11-utils
xorg-x11-server-Xnest
关于package那部分 这里是最小化安装(分区按系统默认)
%packages
@ everything
@ chinese-support
kernel
lvm2
grub
kernel-devel
e2fsprogs
%post
这样就可以了