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 |
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 |
%post doubts
Quote:
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. |
All times are GMT -5. The time now is 11:17 PM. |