Linux-Noob Forums

Full Version: Please Help me!! with kickstart custom linux cd
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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:razz:.. 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.

Does kickstart produce a logfile of any sort (install.log or something)? That may be a good place to start checking for errors.