Originally Posted by tate1615
I've had some success with installing RHEL5 unattended using a kickstart file located on the installation DVD.
The only thing that isn't working like it should is that I can't get commands located in the post-install section to work at all.
Here's the line I'm using to try and test functionality--fails:
%post --nochroot cp /post_files/booya.sh /mnt/sysimage/etc/
Here I'm trying to copy booya.sh from a directory on the installation DVD named post_files to the /etc/ directory on the fresh system.
After it installs...I can't find the booya.sh.
--I modeled my option above after the example in the RHEL kickstart docs: (can't add link b/c it's my 1st post)
Goals for post-install section:
1) Copy a directory from the DVD that I put in the iso filled with configuration files.
2) Run a script transferred along in said directory that copies the config files etc.
Any ideas would be most appreciated.
Your problem seems reasonable, but you should first copy the files from the DVD in the %pre section and then again in the post section onto the filesystem at /mnt/sysimage/
Something like :
mkdir -p /testing/
# Copy config file only
cp /mnt/source/post_files/booya.sh /testing/
# To copy all files in your created directory
cp /mnt/source/post_files/* /testing/
cp /testing/booya.sh /mnt/sysimage/etc/
Thus you can now find your file in the /etc directory after first reboot.
Hope this helps.