LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   copy files of cd post-install? (https://www.linuxquestions.org/questions/red-hat-31/copy-files-of-cd-post-install-118105/)

tuppe 11-20-2003 03:39 AM

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.

aqoliveira 11-20-2003 10:07 AM

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

Wang_Tai 12-05-2003 11:27 AM

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


All times are GMT -5. The time now is 02:25 AM.