THE WAY to copy files from the DVD to the computer???
Bryan J Smith
bjs at redhat.com
Fri May 29 23:53:49 UTC 2009
On Fri, 2009-05-29 at 17:26 -0300, Pablo Bernasconi wrote:
> Hi,
> I´m doing a Fedora 10 distro, and in the %post section I need to copy
> some files (tar.gz, .conf, .php, etc) to the disk, so then I can make
> stuff with it...
> Which is THE WAY to mount the Cd-ROM and then copy some files??????
> Thank you very much!!!
On Fri, 2009-05-29 at 13:53 -0700, Shabazian, Chip wrote:
> If you are installing from CD, it’s already mounted. Just do your
> stuff in the post using --no-chroot
On Fri, 2009-05-29 at 19:21 -0300, Pablo Bernasconi wrote:
> But how do I copy the files to the computer???
> cp <form where???> /usr/src/ ????
> where is the cd-rom mounted??
> Thank you very much!!
E.g.,
# Post section: no chroot
%post --nochroot
# cd to new root (/)
cd /mnt/sysimage
# copy file from root of installation tree to new install
cp /mnt/source/file /mnt/sysimage/file
# Post section: chroot (/mnt/sysimage)
%post
# cd to new root (/)
cd /
# do commands under chroot
(blah)...
--
Bryan J Smith Senior Consultant Red Hat GPS SE US
mailto:bjs at redhat.com +1 (407) 489-7013 (Mobile)
mailto:b.j.smith at ieee.org (non-RH/ext to Blackberry)
--------------------------------------------------------
You already know Red Hat as the entity dedicated to 100%
no-IP-strings-attached, community software development.
But do you know where CIOs rate Red Hat versus other
software and services firms for their own, direct needs?
It's no comparison: http://www.redhat.com/promo/vendor/
More information about the Kickstart-list
mailing list