LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2003, 07:31 PM   #1
stockcowboy
LQ Newbie
 
Registered: Sep 2003
Distribution: redhat 9
Posts: 1

Rep: Reputation: 0
rh9 kickstart post install help


Hi I am running RH9 (trying) and booting my servers with kickstart my post install isn't running, I see the progress bar go accross for a few secs, but it doesn't do anything except create an empty log file, my first command. Any thoughts what I am doing wrong - thanks

mike


%post --nochroot

LOGFILE="/tmp/install.log 2>&1"

# add another nameserver
echo "add another nameserver...." >> /tmp/install.log 2>&1
echo "nameserver 10.2.4.1" >> /etc/resolv.conf
echo "10.2.4.1 server.local server" >> /etc/resolv.conf


# installing java
echo "installing java...." >> /tmp/install.log 2>&1
rpm -iv ftp://10.1.1.4/j2sdk-1_4_2_01-linux-i586.rpm >> /tmp/install.log 2>&1


#configure java
echo "configuring java" >> /tmp/install.log 2>&1
export JAVA_HOME=/usr/java/j2sdk-1_4_2_01 >> /tmp/install.log 2>&1
export PATH=$JAVA_HOME/bin:$PATH >> /tmp/install.log 2>&1


# install tomcat
echo "installing tomcat....." >> /tmp/install.log 2>&1
cd /home/ >> /tmp/install.log 2>&1
ftp -n 10.1.1.4 >> /tmp/install.log 2>&1
user anonymous -ks@SMTP100 >> /tmp/install.log 2>&1
binary >> /tmp/install.log 2>&1
verbose >> /tmp/install.log 2>&1
prompt >> /tmp/install.log 2>&1
mget tomcat-4.1.27.tar.gz >> /tmp/install.log 2>&1
quit >> /tmp/install.log 2>&1

echo "unpacking tomcat....." >> /tmp/install.log 2>&1
tar -zxvf tomcat-4.1.27.tar.gz >> /tmp/install.log 2>&1

# config tomcat
echo "startup tomcat....." >> /tmp/install.log 2>&1
cd /home/jakarta-tomcat-4.1.27/bin >> /tmp/install.log 2>&1
./startup.sh
#
 
Old 12-05-2003, 11:45 AM   #2
Wang_Tai
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
Are you sure that you have the right destinations?


In the %post declaration statement you use --nochroot.
Which will mean that during the post installation, the top of the hierarchy will be /, the top of the new installed system will be /mnt/sysimage.


So I suppose if you want a logfile to the installed systems´ tmp it would have the following path: /mnt/sysimage/tmp/logfile
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kickstart installation. Access to cdrom in %post mrcash Fedora - Installation 2 07-21-2005 11:29 AM
Unable to run post-Installation kickstart scripts zoulo Linux - Enterprise 0 07-05-2005 03:26 AM
how to kickstart on rh9 iversion Red Hat 0 08-01-2004 03:23 AM
Kickstart Post-install tasks TheRealDeal Linux - General 0 09-03-2003 01:13 AM
RH9 Install prob (pre and post) Nasser Linux - Newbie 3 07-05-2003 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration