Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-20-2011, 06:28 PM   #1
Registered: Jul 2008
Posts: 38

Rep: Reputation: 17
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!
Old 09-21-2011, 06:49 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Probably not the correct place, just put in the root of the cd.
Old 09-21-2011, 09:07 PM   #3
Registered: Jul 2008
Posts: 38

Original Poster
Rep: Reputation: 17
I put the directory right in the root of the CD and successfully copied the files.


centos, installation, kickstart

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kickstart redhat installation from a single dvd. udaypratapyati Linux - Distributions 12 07-27-2012 03:46 PM
RHEL5 - copy files from DVD during %post in kickstart jnojr Red Hat 2 12-13-2010 06:03 PM
RHEL 5 Kickstart copying files from DVD ilo Red Hat 0 02-05-2008 08:42 AM
RHEL 5 Kickstart copying files from DVD & inserting comments with sed ilo Linux - Enterprise 0 01-31-2008 12:01 PM
DVD copying of files - I/O error feedmehoney Linux - Desktop 1 07-10-2007 07:10 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration