-   Red Hat (
-   -   Copying files from installation DVD during kickstart (

SimGuy 09-20-2011 07:28 PM

Copying files from installation DVD during kickstart
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

# Post Installation commands
%post --nochroot

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!

kbp 09-21-2011 07:49 PM

Probably not the correct place, just put in the root of the cd.

SimGuy 09-21-2011 10:07 PM

I put the directory right in the root of the CD and successfully copied the files.

All times are GMT -5. The time now is 02:09 PM.