I am in the process of creating a kickstart CD to install centOS 5.4 with some custom RPMs as well as set up the system using the post install scripts. The first thing I need to do is to be able to copy a set of files from the installation DVD onto the hard drive during the post installation process.
My post script looks like this
Code:
# Post Installation commands
%post --nochroot
#!/bin/sh
set -x -v
exec 1>/mnt/sysimage/root/kickstartTest1.log 2>&1
echo "**************************************"
echo "* Running Post Install Configuration *"
echo "**************************************"
# copy oss files
echo "***mounting CD-ROM***"
mkdir -p /mnt/postInstall
mount /tmp/cdrom /mnt/postInstall
echo "***creating oss directory***"
mkdir /mnt/sysimage/oss
echo "***copying oss files***"
cp -r /mnt/postInstall/uBOSS_oss/* /mnt/sysimage/oss/
looking at the log file post install I can see that the cdrom mounts as read-only which should be fine. However when I try to copy files from the DVD to the hard drive I receive the error:
/mnt/postInstall/uBOSS_oss/* no such file or directory
Have I mounted the DVD drive correctly?
The directory uBOSS_oss is in the /kickstartDVD/isolinux/ directory. Is this the correct place for it?
Thanks in advance for any advice!