i have CentOS 5.2 DVD and i copy image all DVD to image file (linux.iso) and change ks.cfg in this below
# ks.cfg : Created by Instalinux at Tue Nov 18 23:07:32 PST 2008
# COE-Profile used: Custom
lang en_US
langsupport --default en_US
mouse generic3ps/2
keyboard us
install
timezone --utc Asia/Bangkok
rootpw --iscrypted JBxtfQL27O.XE
network --bootproto static --ip 192.168.1.2 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.1 --device eth0
network --bootproto static --ip 172.168.1.1 --netmask 255.255.255.0 --device eth1
cdrom
selinux --disabled
firewall --disabled
clearpart --all --initlabel
zerombr yes
bootloader --location=mbr
part /boot --size 75 --fstype ext2
part / --size 1500 --grow --fstype ext3
part swap --size 512 --fstype swap
%packages
@admin-tools
@development-tools
@development-libs
@system-tools
@base
@core
@dns-server
@editors
@ftp-server
@java
@java-development
@legacy-network-server
@legacy-software-development
@legacy-software-support
@mysql
@network-server
@server-cfg
@text-internet
@web-server
kernel-devel
lm_sensors
net-snmp-libs
net-snmp
mrtg
iptraf
mc
php-mysql
php-cli
php-common
php-dba
php-devel
php-gd
php-imap
php-ldap
php-mbstring
php-ncurses
php-odbc
php-pdo
php-snmp
php-xml
php-soap
php-xmlrpc
bind-chroot
bind-devel
bind-libbind-devel
bind-libs
bind-sdb
bind-utils
binutils
binutils-devel
caching-nameserver
system-config-bind
ypbind
%post
mkdir -p /etc/nax/install/
cp -rf /tmp/cdrom/rar-3.7.0-0.1.beta1.el5.rf.i386.rpm /etc/nax/install/
cp -rf /tmp/cdrom/naxpacketv2008-fc8.tar /etc/nax/install
it's all package select install working fine. but post install it's not working
1. i copy rar-3.7.0-0.1.beta1.el5.rf.i386.rpm to "CentOS" directory (** CentOS directory include all rpms)
2. i copy naxpacketv2008-fc8.tar to "CentOS" directory also. ** it's my application
after installed i looking in /etc/nax/install directory rar-3.7.0-0.1.beta1.el5.rf.i386.rpm,naxpacketv2008-fc8.tar not found
how to working.
ext.
1. i want to use shell script in post install section also. like this(install-core.sh in naxpacketv2008-fc8.tar)
#!/bin/sh
#### linux core #####
cd /etc/nax/install
cd src
cp -rf linux-2.6.23.1.tar.bz2 /usr/src/
cp -rf iptables-1.3.8.tar.bz2 /usr/src/
cd /usr/src
bunzip2 linux-2.6.23.1.tar.bz2
bunzip2 iptables-1.3.8.tar.bz2
tar -xvf linux-2.6.23.1.tar
tar -xvf iptables-1.3.8.tar
cd linux-2.6.23.1
make bzImage
make modules
make modules_install
make install
cd ..
cd iptables-1.3.8
chmod +x extensions/.layer7-test
make KERNEL_DIR=/usr/src/linux-2.6.23.1
make install KERNEL_DIR=/usr/src/linux-2.6.23.1
cd /etc/nax/install/src
cd l7
make install
##### iptables #########################
cd /sbin
mv iptables iptables.old
mv iptables-save iptables-save.old
mv iptables-restore iptables-restore.old
ln -s /usr/local/sbin/iptables iptables
ln -s /usr/local/sbin/iptables-save iptables-save
ln -s /usr/local/sbin/iptables-restore iptables-restore
##########################################
#### ipp2p #########
cd /etc/nax/install/sysconfig/ipp2p-0.99.14
make clean
make
cp -rf libipt_ipp2p.so /usr/local/lib/iptables/
insmod ipt_ipp2p.ko
depmod -a
cp ipt_ipp2p.ko -rf /lib/modules/2.6.23.1/kernel/net/ipv4/netfilter/
##### service ###
rpm --force -ivh *.rpm
cp -rf modsecurity_crs_10_config.conf /etc/httpd/modsecurity.d/
very thank for any anwser.