Re: THE WAY to copy files from the DVD to the computer???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx         +1 (407) 489-7013 (Mobile) 
mailto:b.j.smith@xxxxxxxx     (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/ 

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux