Results 1 to 3 of 3
i build custom linux cd with kickstart and create directory in this below
CentOS 5.2 DVD
dr-xr-xr-x 2 root root 40960 Feb 12 07:40 CentOS
dr-xr-xr-x 4 root root 4096 ...
- 02-11-2009 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 84
Please Help me!! with kickstart custom linux cd
i build custom linux cd with kickstart and create directory in this below
CentOS 5.2 DVD
dr-xr-xr-x 2 root root 40960 Feb 12 07:40 CentOS
dr-xr-xr-x 4 root root 4096 Feb 11 06:05 images
dr-xr-xr-x 2 root root 4096 Feb 11 06:05 isolinux
-r-xr-xr-x 1 root root 1394 Feb 12 07:43 ks.cfg
dr-xr-xr-x 2 root root 4096 Feb 11 07:06 NOTES
drwxr-xr-x 2 root root 4096 Feb 12 07:40 Pack --> include my program
drwxr-xr-x 2 root root 4096 Feb 12 07:42 repodata
-r--r--r-- 1 root root 438 Feb 11 06:06 TRANS.TBL
i'm build repodata and isolinux it's work perfectly
.. and i create ks.cfg in this below.
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
dhcp
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
rar --> extra rpm it's install working after "createrepo" command
%post
/bin/mkdir -p /etc/test/install/
/bin/cp /mnt/source/Pack/test.tar /etc/test/install/
kickstart config for %packages and all config server it's work perfectly.
!!! but.... %post section it's not working
i can't copy test.rar form "Pack" directory it's same cd linux to harddisk
but system can be create /etc/test/install and i see "?" in directory only(must be test.rar)
i try change %pre,%post --nochroot not working also.
** in test.rar include install.sh shell script file i can run it or not.
help me please i try about month it's not work....
(i post this question all linux forum on internet. but not answer!!)
thank you for advance.
- 02-12-2009 #2Linux Newbie
- Join Date
- Feb 2009
- Posts
- 99
because your rar is not one package from official.
use following command under your $CDPATH <-- of coz, it would rewrite your Pack\repoXXX directory data.
for i in `find | grep "xml$" | grep "comps"`;do createrepo -g ${i#./*/} ${i%/*/*.xml}; done
and your post script usage is right.
does test.rar in $CD/Pack/test.rar ??
- 02-12-2009 #3Just Joined!
- Join Date
- Jun 2007
- Posts
- 84
rar package or another rpm import is working (i use createrepo for rebuild file list. after installed it's work)
but my problem in post section it's not working . i not understand.!!


Reply With Quote