編輯rules規(guī)則
vim /tftpboot/rules
ri ^[a-z]: # Remove “drive letters”
rg \\ / # Convert backslashes to slashes
rg \# @ # Convert hash marks to @ signs
rg /../ /..no../ # Convert /../ to /..no../
rg A a
rg B b
rg C c
rg D d
rg E e
rg F f
rg G g
rg H h
rg I i
rg J j
rg K k
rg L l
rg M m
rg N n
rg O o
rg P p
rg Q q
rg R r
rg S s
rg T t
rg U u
rg V v
rg W w
rg X x
rg Y y
rg Z z
r ^/(.*) \1
3、http配置
yum install -y httpd
vim /etc/httpd/conf/httpd.conf
<Directory "/tftpboot">
DocumentRoot "/tftpboot/"
#######################################三、復(fù)制需要的內(nèi)核文件還有其相關(guān)文件
mount /dev/cdrom /media
cd /media
cp -a * /tftpboot
cabextract -d /tftpboot/ /tftpboot/win2k3/i386/startom.n1_
sed -i -e 's/NTLDR/W2K3L/gi' /tftpboot/startrom.n12
mv /tftpboot/startrom.n12 /tftpboot/w2k3.0
cabextract -d /tftpboot/ /tftpboot/win2k3/i386/setupldr.ex_
sed -i -e 's/winnt\.sif/wi2k3\.sif/gi' /tftpboot/setupldr.exe
sed -i -e 's/ntdetect\.com.ntdetect\.2k3/gi' /tftpboot/setupldr.exe
mv /tftpboot/setupldr.exe /tftp/W2K3L
cp /tftpboot/win2k3/i386/ntdetect.com /tftpboot/ntdetect.2k3