Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-26-2003, 08:31 PM   #1
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


%post --nochroot

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

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

# installing java
echo "installing java...." >> /tmp/install.log 2>&1
rpm -iv >> /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 >> /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
Old 12-05-2003, 12:45 PM   #2
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


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 12:29 PM
Unable to run post-Installation kickstart scripts zoulo Linux - Enterprise 0 07-05-2005 04:26 AM
how to kickstart on rh9 iversion Red Hat 0 08-01-2004 04:23 AM
Kickstart Post-install tasks TheRealDeal Linux - General 0 09-03-2003 02:13 AM
RH9 Install prob (pre and post) Nasser Linux - Newbie 3 07-05-2003 04:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 AM.

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