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. |
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 |
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:
|
All times are GMT -5. The time now is 02:25 AM. |