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.