LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 12-13-2006, 06:33 PM   #1
pete@cosc.
LQ Newbie
 
Registered: Oct 2005
Location: Christchurch, NZ
Distribution: Fedora Core 4
Posts: 2

Rep: Reputation: 0
FC6 kickstart doesn't post install


Hi,
A first post for me...
I have a number of kickstart installations for FC3,4,5 and the
kickstart files are all the same between versions.
The problem I have is that FC6 does not run the post install
completely.. The mkdir is done, The mount and others are not.

The last ten lines of the ks file are as follows.
If I login and type the commands in, everything proceeds.
Any ideas on the problem or where to look for errors??

@ everything
e2fsprogs
kernel

%post
/bin/mkdir -p /mnt/fc6-i386
/bin/mount -o tcp,rsize=8192,wsize=8192 IP_number:/nfs_dir/fc6-i386 /mnt/fc6-i386
cd /mnt/fc6-i386/post/control
./INSTALL

Last edited by pete@cosc.; 12-13-2006 at 06:42 PM. Reason: found was getting into post install.. not completing
 
Old 12-17-2006, 02:15 PM   #2
pete@cosc.
LQ Newbie
 
Registered: Oct 2005
Location: Christchurch, NZ
Distribution: Fedora Core 4
Posts: 2

Original Poster
Rep: Reputation: 0
Replying to my own post

Taken a few days but I have solved it ( a number of issues)

** Commands that were working in FC3,4,5 are not in the same
place for FC6. All my /bin/xxx appear to have shifted to
/usr/bin and /bin is now a link to /sbin (which has very
few commands) I removed the directory part and depended on the
PATH to find them.

BUT....
** my copying and running of a shell script wouldn't work
even with the commands corrected.
It might be a default change but FC6 wouldn't allow me to
copy files or make changes to the newly installed disk
without the following on the post line --nochroot
I found out about this flag ( --erroronfail ) in
/usr/share/doc/anaconda-11.1.1.3/kickstart-docs.txt

which was most helpful in debugging the post install errors
(even though it took a full install to get to the post part.)
Here is a similar portion of the %post of the ks file

%post --nochroot --erroronfail
/usr/bin/mkdir -p /mnt/fc6-i386
# resolv.conf not working yet so have to have IP addresses
/usr/bin/mount -o tcp,rsize=8192,wsize=8192 IP_ADDRESS:NFS_DIR /mnt/fc6-i386
cd /mnt/fc6-i386/post/control
LOCATION=/mnt/sysimage

mkdir -p $LOCATION/local
chmod 1777 $LOCATION/local

cp -f ./nsswitch.conf $LOCATION/etc/nsswitch.conf

# ============================================ #
# Install the first S98kickstart file. #
# ============================================ #
cp -f ./S98kickstart.fc6 $LOCATION/etc/rc5.d/
chmod a+x $LOCATION/etc/rc5.d/S98kickstart.fc6
 
Old 01-15-2007, 08:54 PM   #3
jape_suyash
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
%post doubts

Quote:
Originally Posted by pete@cosc.
Taken a few days but I have solved it ( a number of issues)

** Commands that were working in FC3,4,5 are not in the same
place for FC6. All my /bin/xxx appear to have shifted to
/usr/bin and /bin is now a link to /sbin (which has very
few commands) I removed the directory part and depended on the
PATH to find them.

BUT....
** my copying and running of a shell script wouldn't work
even with the commands corrected.
It might be a default change but FC6 wouldn't allow me to
copy files or make changes to the newly installed disk
without the following on the post line --nochroot
I found out about this flag ( --erroronfail ) in
/usr/share/doc/anaconda-11.1.1.3/kickstart-docs.txt

which was most helpful in debugging the post install errors
(even though it took a full install to get to the post part.)
Here is a similar portion of the %post of the ks file

%post --nochroot --erroronfail
/usr/bin/mkdir -p /mnt/fc6-i386
# resolv.conf not working yet so have to have IP addresses
/usr/bin/mount -o tcp,rsize=8192,wsize=8192 IP_ADDRESS:NFS_DIR /mnt/fc6-i386
cd /mnt/fc6-i386/post/control
LOCATION=/mnt/sysimage

mkdir -p $LOCATION/local
chmod 1777 $LOCATION/local

cp -f ./nsswitch.conf $LOCATION/etc/nsswitch.conf

# ============================================ #
# Install the first S98kickstart file. #
# ============================================ #
cp -f ./S98kickstart.fc6 $LOCATION/etc/rc5.d/
chmod a+x $LOCATION/etc/rc5.d/S98kickstart.fc6




Hello ,I 'm a newbie Linux and i'm trying to use Xen and Linux together.
I'm facing few problens with %post in kickstart in FC5.

1)Copying of files during post is failing inspite of having Static IP.(resolv.conf must have been ready).

2)Other than /usr/share/doc/anaconda-11.1.1.3/kickstart-docs.txt file,
Could you suggest some documents which could tell me

"how flexible is %post and what all are the thigns we can do with it"

3)Also i'm a little confused about the state of the file system when anaconda is running %post.Could you shed some light on that and what things like /mnt/sysimage corresponds to?


will be eternally grateful
Thanks.
 
  


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 post-installation abhi2778 Linux - Software 8 07-10-2012 09:30 AM
running %post script for Mailserver through kickstart abhi2778 Fedora 0 09-06-2006 03:12 AM
Kickstart installation. Access to cdrom in %post mrcash Fedora - Installation 2 07-21-2005 11:29 AM
rh9 kickstart post install help stockcowboy Linux - Newbie 1 12-05-2003 11:45 AM
Kickstart Post-install tasks TheRealDeal Linux - General 0 09-03-2003 01:13 AM


All times are GMT -5. The time now is 05:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration