LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 11-20-2003, 04:39 AM   #1
tuppe
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
copy files from cd post-install?


I am building a custom install CD of redhat 9 and I have a few questions:

The install will use a kickstart file, so it will all be automated. I want the post_install script to copy a custom directory off the CD into a directory on the newly installed server.

I there a way to access the install CD to copy files from it from within the post_install script?

If not, any suggestions on an alternative way to accomplish this? I hope I can keep it simple without having to create a custom rpm and mess further with comps.xml.


Cheers,
Tuppe.

Last edited by tuppe; 11-20-2003 at 07:03 AM.
 
Old 11-20-2003, 11:07 AM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Howzit

I have never tried this but under the ks.cfg u will find a section that says %post u can place any cmd that need to be executed here. Place the cmds to mount the cd don't dorget to creat the mount piont then tell it to copy or install file as needed.


Good Luck
 
Old 12-05-2003, 12:27 PM   #3
Wang_Tai
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
Wink Re: copy files from cd post-install?

Hello,

to answer your question.
Sure, you can easily access your cdrom during the post stage.
The easiest way to accomplish this, or atleast the way I do it is like this.
After the %post declaration, simply add these lines:
mkdir /mnt/cdrom
mount /tmp/cdrom /mnt/cdrom

The cdrom device file is located at /tmp/cdrom.

On a side note, the cdrom is mounted in /mnt/source during pre.

Good luck with your project and don't hesitate to post more questions.



Quote:
Originally posted by tuppe
I am building a custom install CD of redhat 9 and I have a few questions:
I there a way to access the install CD to copy files from it from within the post_install script?

Cheers,
Tuppe.
Edit: Typo

Last edited by Wang_Tai; 12-05-2003 at 12:28 PM.
 
  


Reply


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
Install programs can't copy files under wine/cvscedega cure1245 Linux - Software 0 07-11-2005 04:42 PM
Copy files andy18 Linux - General 4 09-02-2003 03:26 PM
can't copy files from cd linuxmad Linux - General 2 08-29-2003 12:34 AM
Install doesn't copy the files fdiskgreg Slackware 5 03-04-2003 12:58 AM
how to copy and paste between files and within files Bheki Linux - General 1 02-05-2002 06:29 AM


All times are GMT -5. The time now is 09:53 AM.

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