post install copying

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

 



Hi,

I'm trying to do a kickstart installation via NFS.  I must admit, this
whole chroot thing in the %post directive has me baffled.  I'm new to
this and I'm hoping for some help on what I think is a common
situation.  After installing my packages, I'd like to copy some files to
the new machine and run some scripts.  The files fit (just barely) on my
boot disk, but I'd like them to come from the same NFS share from which
I just installed.  Once the files are copied over, I'd like to run one
Bourne Shell script and one perl script.  I'm sure this is simple to
many of you.  Can someone just detail how this would work (i.e. can I do
this in a chrooted environment?  How do I mount the NFS share? The
floppy disk?).

Note, the NFS install works perfectly.  I don't have any issues running
the install all the way through the package installation.  It's only the
%post section that's failing.  My current setup (which I know is wrong)
is something like:
-----------------------------------------------------------
%post --nochroot
mount /mnt/flopply
cp /mnt/floppy/setup.tar /tmp  # ideally this should be NFS rather than
floppy
umount /mnt/floppy

tar xvf /tmp/setup.tar

./setup1.sh
./setup2.pl
----------------------------------------------------------------

Thanks in advance,

Craig






[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